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')
|
||||
|
||||
@@ -118,6 +118,7 @@
|
||||
switchVillage({ villageId: selectedItem.value.id }).then((res) =>{
|
||||
if(res.code === 200){
|
||||
uni.showToast({ title: '切换成功', icon: 'success', duration: 1500 })
|
||||
uni.hideLoading()
|
||||
uni.$emit('confirm', selectedItem.value)
|
||||
setTimeout(() => {
|
||||
uni.navigateBack()
|
||||
|
||||
Reference in New Issue
Block a user