尝试修改BUG尝试1
This commit is contained in:
1 parent
440a4fdedf
commit
662be0dc6c
2 files changed
+4
-3
No files matched your search
@@ -6,7 +6,7 @@ import { TDesignResolver } from 'unplugin-vue-components/resolvers'
|
||||
|
||||
import { handleHeadMeta } from '../theme/utils/handleHeadMeta'
|
||||
import { search as zhSearch } from './zh'
|
||||
import sidebar from "../../../autoSidebar";
|
||||
import sidebar from '../../../autoSidebar'
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
@@ -17,6 +17,7 @@ export default defineConfig({
|
||||
// hostname: 'https://duyl328.github.io',
|
||||
// },
|
||||
// base: 'https://duyl328.github.io',
|
||||
base: process.env.BASE || '/',
|
||||
head: [
|
||||
// 谷歌分析,暂不使用
|
||||
// ['script',
|
||||
@@ -69,7 +70,7 @@ export default defineConfig({
|
||||
vite: {
|
||||
plugins: [
|
||||
// 自动更新列表
|
||||
sidebar("docs/.vitepress","/docs/notes"),
|
||||
sidebar('docs/.vitepress', '/docs/notes'),
|
||||
AutoImport({
|
||||
resolvers: [
|
||||
TDesignResolver({
|
||||
|
||||
@@ -35,7 +35,7 @@ export default defineConfig({
|
||||
],
|
||||
|
||||
editLink: {
|
||||
pattern: 'https://duyl328.github.io/edit/master/docs/:path',
|
||||
pattern: 'https://github.com/duyl328/duyl328.github.io/edit/main/docs/:path',
|
||||
text: '在 GitHub 上编辑此页',
|
||||
},
|
||||
returnToTopLabel: '回到顶部',
|
||||
|
||||
Reference in new issue
Block a user