Skip to content

Commit f0cfed7

Browse files
committed
fix: editor not shown after update vitepress
1 parent f391a10 commit f0cfed7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/content/.vitepress/theme/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ import '@vueup/vue-quill/dist/vue-quill.bubble.css' // for bubble theme
1717
import '@vueup/vue-quill/dist/vue-quill.snow.css' // for snow theme
1818

1919
export default {
20-
enhanceApp({ app, router, siteData }) {
21-
// app is the Vue 3 app instance from `createApp()`. router is VitePress'
22-
// custom router. `siteData`` is a `ref`` of current site-level metadata.
23-
app.component('QuillEditor', QuillEditor)
24-
},
2520
...Theme,
2621
Layout() {
2722
return h(Theme.Layout, null, {
2823
'home-features-after': () => h(HomeDemo),
2924
// 'aside-ads-before': () => h(AsideSponsors)
3025
})
3126
},
27+
enhanceApp({ app, router, siteData }) {
28+
// app is the Vue 3 app instance from `createApp()`. router is VitePress'
29+
// custom router. `siteData`` is a `ref`` of current site-level metadata.
30+
app.component('QuillEditor', QuillEditor)
31+
},
3232
}

0 commit comments

Comments
 (0)