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