修正多处问题
This commit is contained in:
@@ -130,6 +130,7 @@ function handleTabActive(index) {
|
||||
}
|
||||
|
||||
onLoad(() => {
|
||||
uni.hideLoading()
|
||||
// 优先显示缓存
|
||||
const hasCache = loadFromCache()
|
||||
if (!hasCache) {
|
||||
@@ -143,6 +144,7 @@ onLoad(() => {
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
uni.hideLoading()
|
||||
// 每次显示时尝试刷新数据(后台静默更新)
|
||||
if (!loading.value) {
|
||||
loadFromNetwork()
|
||||
|
||||
Reference in New Issue
Block a user