升级:将 VitePress 版本升级为 v1.0.0-alpha.27(删除自定义 Badge 组件更换为官方全局组件,调整 cleanUrls 配置)

This commit is contained in:
2022-11-04 15:01:48 +08:00
parent 3e276eae12
commit 221baae8c7
27 changed files with 108 additions and 172 deletions

View File

@@ -6,6 +6,11 @@ import './styles/custom.css'
export default {
...DefaultTheme,
Layout: MyLayout,
enhanceApp({ app }) {
enhanceApp(ctx) {
// extend default theme custom behaviour.
DefaultTheme.enhanceApp(ctx)
// register your custom global components
// ctx.app.component('MyGlobalComponent' /* ... */)
}
}