Skip to content

Commit

Permalink
fix: 修复页面还没加载完毕就跑入 render 函数的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanzebin committed Jun 20, 2024
1 parent 082085e commit 64115e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-vite-runner/src/harmony/template/page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ callFn(this.page?.onReady, this, params)`
const isCustomNavigationBar = this.appConfig.window?.navigationStyle === 'custom'
let pageStr = ''
if (this.buildConfig.isBuildNativeComp) {
return `if (true) {
return `if (this.node) {
TaroView({ node: this.node as TaroViewElement, createLazyChildren: createLazyChildren })
if (${isTabPage ? 'this.layerNode[index]' : 'this.layerNode'}) {
Stack() {
Expand Down

0 comments on commit 64115e7

Please sign in to comment.