This commit is contained in:
2026-09-13 02:35:32 +08:00
parent 42f9530a59
commit e65d4f5189
4 changed files with 32 additions and 2 deletions
@@ -31,6 +31,13 @@ Page({
redirectToLogin()
return
}
// 首帧渲染未结束就 setData 会触发「Expected updated data but get first rendering data」,
// 整个 webview 渲染失败。首次 onShow 的刷新延迟到下一帧
if (!(this as any).firstShown) {
;(this as any).firstShown = true
wx.nextTick(() => this.refresh())
return
}
this.refresh()
},