修复:启用评论组件
This commit is contained in:
15
docs/.vitepress/theme/index.ts
Normal file
15
docs/.vitepress/theme/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import MyLayout from "./MyLayout.vue"
|
||||
import './styles/vars.css'
|
||||
import './styles/custom.css'
|
||||
import ArticleMetadata from './components/ArticleMetadata.vue'
|
||||
import WordCloud from './components/WordCloud.vue'
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
Layout: MyLayout,
|
||||
enhanceApp({ app }) {
|
||||
app.component('ArticleMetadata', ArticleMetadata)
|
||||
app.component('WordCloud', WordCloud)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user