修复点击链接后会弹出404界面的问题

修复点击链接后会弹出404界面的问题,可能为viteBundler未正常引入导致
This commit is contained in:
狮子耗耗 2024-02-09 11:01:52 +08:00
parent b28f1476f7
commit b150a3eece
4 changed files with 1566 additions and 20336 deletions

21867
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,12 +11,16 @@
"docs:update-package": "npx vp-update" "docs:update-package": "npx vp-update"
}, },
"devDependencies": { "devDependencies": {
"@vuepress/client": "2.0.0-beta.66", "@vuepress/bundler-vite": "^2.0.0-rc.7",
"vue": "^3.2.47", "katex": "^0.16.9",
"vuepress": "2.0.0-beta.66", "vue": "^3.4.17",
"vuepress-theme-hope": "2.0.0-beta.234" "vuepress": "^2.0.0-rc.7",
"vuepress-theme-hope": "2.0.0-rc.23"
}, },
"volta": { "volta": {
"node": "20.11.0" "node": "20.11.0"
},
"dependencies": {
"vuepress-plugin-md-enhance": "^2.0.0-rc.23"
} }
} }

View File

@ -1,7 +1,12 @@
import { viteBundler } from '@vuepress/bundler-vite'
import { defineUserConfig } from "vuepress"; import { defineUserConfig } from "vuepress";
import theme from "./theme.js"; import theme from "./theme.js";
export default defineUserConfig({ export default defineUserConfig({
bundler: viteBundler({
viteOptions: {},
vuePluginOptions: {}
}),
base: "/jingji/book/", base: "/jingji/book/",
lang: "zh-CN", lang: "zh-CN",

View File

@ -41,36 +41,26 @@ export default hopeTheme({
}, },
plugins: { plugins: {
// You should generate and use your own comment service
// comment: {
// provider: "Giscus",
// repo: "vuepress-theme-hope/giscus-discussions",
// repoId: "R_kgDOG_Pt2A",
// category: "Announcements",
// categoryId: "DIC_kwDOG_Pt2M4COD69",
// },
// All features are enabled for demo, only preserve features you need here // All features are enabled for demo, only preserve features you need here
mdEnhance: { mdEnhance: {
align: true, align: true,
attrs: true, attrs: true,
chart: true, chart: false,
codetabs: true, codetabs: true,
demo: false, demo: false,
echarts: true, echarts: false,
figure: true, figure: true,
flowchart: false, flowchart: false,
gfm: true, gfm: false,
imgLazyload: true, imgLazyload: true,
imgSize: true, imgSize: true,
include: true, include: true,
katex: true, katex: true,
mark: true, mark: true,
mermaid: true, mermaid: false,
playground: { playground: {
presets: ["ts", "vue"], presets: ["ts", "vue"],
}, },
presentation: ["highlight", "math", "search", "notes", "zoom"],
stylize: [ stylize: [
{ {
matcher: "Recommended", matcher: "Recommended",