修复bug

This commit is contained in:
zhouyanli
2026-08-01 11:56:28 +08:00
parent a34b625092
commit f74fb33e11
30 changed files with 162 additions and 257 deletions

View File

@@ -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' })
}
})
}