bugfix
This commit is contained in:
@@ -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()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user