Skip to content

Commit

Permalink
fix(harmony): 同步 app 模板变更
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Jun 16, 2024
1 parent 0d3c093 commit 3518b49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export function connectReactPage (
}))

return h(
'view',
'taro-page',
{ id, className: 'taro_page' },
children
)
Expand Down Expand Up @@ -110,7 +110,7 @@ export function createReactApp (
const appId = config?.appId || 'app'

if (ReactMeta.Container === EMPTY_OBJ) {
const Container = document.createElement('view')
const Container = document.getElementById(appId)

Container.id = appId
ReactMeta.Container = Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function createSolidApp(App: SolidComponent, config: AppConfig) {
const appId = config?.appId || 'app'

if (ReactMeta.Container === EMPTY_OBJ) {
const Container = document.createElement('view')
const Container = document.getElementById(appId)

Container.id = appId
ReactMeta.Container = Container
Expand Down Expand Up @@ -68,7 +68,11 @@ export function createSolidApp(App: SolidComponent, config: AppConfig) {
},
})

return h('root', { id }, children)
return h(
'taro-page',
{ id, className: 'taro_page' },
children
)
},
}),
})
Expand Down

0 comments on commit 3518b49

Please sign in to comment.