修改显示小区bug
This commit is contained in:
@@ -224,6 +224,8 @@ const handleLogin = () => {
|
||||
if (res.data.userId) {
|
||||
uni.setStorageSync('userId', res.data.userId)
|
||||
}
|
||||
// 清掉上次账号的小区缓存,防止新账号显示旧小区
|
||||
uni.removeStorageSync('currentVillage')
|
||||
// 存当前绑定的小区ID,0 表示未绑定
|
||||
const currentVillageId = res.data.currentVillageId || 0
|
||||
uni.setStorageSync('currentVillageId', currentVillageId)
|
||||
|
||||
Reference in New Issue
Block a user