mirror of
http://36.133.248.69:3088/admin/RentWeAppFront.git
synced 2026-06-07 06:22:27 +08:00
修复bug
This commit is contained in:
@@ -145,6 +145,8 @@
|
|||||||
opacity: 0,
|
opacity: 0,
|
||||||
extraIcons: [] // 右侧额外图标
|
extraIcons: [] // 右侧额外图标
|
||||||
},
|
},
|
||||||
|
// 用户信息(响应式)
|
||||||
|
userInfo: uni.getStorageSync('userInfo') || {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -164,7 +166,7 @@
|
|||||||
return this.$config.staticUrl
|
return this.$config.staticUrl
|
||||||
},
|
},
|
||||||
user() {
|
user() {
|
||||||
return uni.getStorageSync('userInfo') || {}
|
return this.userInfo
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -210,14 +212,17 @@
|
|||||||
}).then(obj => {
|
}).then(obj => {
|
||||||
if(obj.flag){
|
if(obj.flag){
|
||||||
console.log("更新缓存中用户信息")
|
console.log("更新缓存中用户信息")
|
||||||
uni.setStorageSync('userInfo', {
|
const newUserInfo = {
|
||||||
userType: obj.data.userType,
|
userType: obj.data.userType,
|
||||||
oaAuth: obj.data.oaAuth,
|
oaAuth: obj.data.oaAuth,
|
||||||
cusNo: obj.data.cusNo,
|
cusNo: obj.data.cusNo,
|
||||||
userName: obj.data.userName,
|
userName: obj.data.userName,
|
||||||
openId: obj.data.openId,
|
openId: obj.data.openId,
|
||||||
subscribe: obj.data.subscribeMsg
|
subscribe: obj.data.subscribeMsg
|
||||||
})
|
}
|
||||||
|
uni.setStorageSync('userInfo', newUserInfo)
|
||||||
|
// 更新响应式数据
|
||||||
|
this.userInfo = newUserInfo
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user