修复bug

This commit is contained in:
zhouyanli
2026-08-11 14:52:25 +08:00
parent 3757033744
commit 839f3ee1b7
6 changed files with 56 additions and 23 deletions

View File

@@ -423,7 +423,11 @@ onShow(() => {
// 从其他页面返回 / 从后台恢复:只刷新可能变化的数据
getbannarData()
getMyOrderNum()
// 小区和巡检数据不频繁变化,从后台恢复时用缓存/旧数据,减少请求
// 换账号登录后 currentVillage 缓存已被清除,需要重新获取小区
if (!uni.getStorageSync('currentVillage')) {
currentVillageData()
getInspectionData()
}
})
onLoad(() => {