pull/86/head
孙萌 2024-01-06 14:55:40 +08:00
parent 478145c8e9
commit d9a914d963
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ export default {
}, },
// //
getEqbyid() { getEqbyid() {
var userInfo = JSON.parse(localStorage.getItem('userInfo')) var userInfo =localStorage.getItem('userInfo')? JSON.parse(localStorage.getItem('userInfo')):{userid:-1}
this.api.getEqbyid(userInfo.userid).then((res) => { this.api.getEqbyid(userInfo.userid).then((res) => {
if (res.data.code == 200) { if (res.data.code == 200) {
this.$store.state.equipmentList = res.data.data.map((item, index) => { this.$store.state.equipmentList = res.data.data.map((item, index) => {