From 2d97e6b364aad6625b54c14110dee9de99c8adcd Mon Sep 17 00:00:00 2001 From: yma16 <17685043634@163.com> Date: Wed, 30 Aug 2023 23:35:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8E=BB=E6=8E=89=E8=B7=AF=E7=94=B1#?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 2 +- src/router/index.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config/index.js b/config/index.js index 4319040..221e394 100644 --- a/config/index.js +++ b/config/index.js @@ -89,7 +89,7 @@ module.exports = { // Paths assetsRoot: path.resolve(__dirname, "../dist"), assetsSubDirectory: "myblog_static", - assetsPublicPath: "./", + assetsPublicPath: "/", /** * Source Maps */ diff --git a/src/router/index.js b/src/router/index.js index 7434242..fb35cab 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -79,6 +79,7 @@ const useRouter = (Vue, VueRouter) => { } // 路由 const router = new VueRouter({ + mode: 'history', routes }) -- GitLab