修复bug
This commit is contained in:
@@ -242,7 +242,11 @@
|
||||
currentVillageId.value = ''
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.showToast({ title: err.msg || '网络异常', icon: 'error' })
|
||||
// 有 token 才提示错误(无 token 用户正常浏览首页,API 401 属于预期行为)
|
||||
const token = uni.getStorageSync('token')
|
||||
if (token) {
|
||||
uni.showToast({ title: err.msg || '网络异常', icon: 'error' })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user