优化内容加修复bug
This commit is contained in:
@@ -380,13 +380,15 @@
|
||||
uni.reLaunch({ url: '/pages/navigation/navigation' })
|
||||
return
|
||||
}
|
||||
// 优先展示缓存数据,实现冷启动秒开
|
||||
loadHomeCache()
|
||||
// 关闭原生 splash,避免 WebView 初始化期间一直转圈
|
||||
// 关闭原生 splash
|
||||
// #ifdef APP-PLUS
|
||||
try { plus.navigator.closeSplashscreen() } catch (e) {}
|
||||
// #endif
|
||||
// 后台静默刷新最新数据
|
||||
// 优先展示缓存数据,实现冷启动秒开
|
||||
const hasCache = loadHomeCache()
|
||||
if (hasCache) {
|
||||
pageReady.value = true
|
||||
}
|
||||
refreshAllData()
|
||||
uni.$on('confirm', slelctHomeData)
|
||||
lastUserId.value = uni.getStorageSync('userId') || ''
|
||||
|
||||
Reference in New Issue
Block a user