Merge branch 'master' of http://gitea.bugtc.com/zhouyanli/property-manager-side
This commit is contained in:
@@ -221,8 +221,8 @@ const handleLogin = () => {
|
||||
if (res.data) {
|
||||
uni.setStorageSync('token', res.data.token)
|
||||
// 存用户ID
|
||||
if (res.data.userId) {
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
if (res.data.user.userId) {
|
||||
uni.setStorageSync('userId', res.data.user.userId)
|
||||
}
|
||||
// 清掉上次账号的小区缓存,防止新账号显示旧小区
|
||||
uni.removeStorageSync('currentVillage')
|
||||
|
||||
Reference in New Issue
Block a user