[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-08-08 08:09:56 +00:00 committed by GitHub
parent e245fb7502
commit 2b4c2ae01c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -894,7 +894,7 @@ describe('KeepAlive', () => {
childCount++ childCount++
}) })
return () => 'child' return () => 'child'
} },
}) })
const Parent = defineComponent({ const Parent = defineComponent({
setup() { setup() {
@ -902,14 +902,14 @@ describe('KeepAlive', () => {
parentCount++ parentCount++
}) })
return () => h(Child) return () => h(Child)
} },
}) })
const AsyncComp = defineAsyncComponent(() => Promise.resolve(Parent)) const AsyncComp = defineAsyncComponent(() => Promise.resolve(Parent))
const App = { const App = {
render: () => { render: () => {
return h(KeepAlive, null, () => (toggle.value ? h(AsyncComp) : null)) return h(KeepAlive, null, () => (toggle.value ? h(AsyncComp) : null))
} },
} }
render(h(App), root) render(h(App), root)