mirror of
https://github.com/ZiuChen/ZiuChen.github.io.git
synced 2025-12-21 02:05:39 +08:00
fix: 引入Vue组件 解决页内跳转404的错误
This commit is contained in:
11
docs/.vitepress/theme/index.ts
Normal file
11
docs/.vitepress/theme/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import Title from '../components/Title.vue'
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
enhanceApp(ctx) {
|
||||
DefaultTheme.enhanceApp(ctx)
|
||||
const { app } = ctx
|
||||
app.component('Title', Title)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user