From b0d7c6135d1117ae3e09a97f54c484fee0a71ece Mon Sep 17 00:00:00 2001 From: lVAL Date: Fri, 9 Oct 2020 11:14:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E8=B7=AF?= =?UTF-8?q?=E5=BE=84=EF=BC=8C=E4=BB=A5=E5=8F=8A=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E7=9A=84=E9=A1=B5=E9=9D=A2=E8=B7=B3=E8=BD=AC=E5=88=B0=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/permission.js | 2 +- src/router/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/permission.js b/src/permission.js index 83fbf5f..7513f5c 100644 --- a/src/permission.js +++ b/src/permission.js @@ -12,7 +12,7 @@ router.beforeEach(async (to, from, next) => { if (to.path == "/") { next({ path: "/home" }); } else if (to.matched.length === 0) { - from.name ? next({ name: from.name }) : next({ path: "/404" }); + from.name ? next({ name: from.name }) : next({ path: "/" }); } else { next(); } diff --git a/src/router/index.js b/src/router/index.js index fb4c631..4717909 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -75,7 +75,7 @@ const routes = [ const createRouter = () => new VueRouter({ - base: "/official-website/", + base: "/", mode: "history", routes });