mirror of
https://github.com/pengzhanbo/vuepress-theme-plume.git
synced 2026-04-23 10:58:13 +08:00
perf: improve <Content /> type
This commit is contained in:
parent
fbd70023ee
commit
696e927ae5
@ -23,7 +23,7 @@ export const Content = defineComponent({
|
||||
if (!props.path)
|
||||
return pageComponent.value
|
||||
const route = resolveRoute(props.path)
|
||||
return defineAsyncComponent(() => route.loader().then(({ comp }) => comp))
|
||||
return defineAsyncComponent(() => route.loader().then(({ comp }) => comp as any))
|
||||
})
|
||||
|
||||
return () => h(ContentComponent.value, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user