From 8accf388ca5c8867a625faa58793acfc40c679ca Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 1 Jun 2023 17:56:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=AF=E7=94=B1=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=B8=8D=E6=B8=B2=E6=9F=93=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98&=E5=88=87=E6=8D=A2=E4=B8=BA=20hash=20=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layout/page-layout.vue | 10 ++++++---- frontend/src/router/index.ts | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/layout/page-layout.vue b/frontend/src/layout/page-layout.vue index 390306bd83..5ed5f26f91 100644 --- a/frontend/src/layout/page-layout.vue +++ b/frontend/src/layout/page-layout.vue @@ -1,10 +1,12 @@ diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 5ee9d08bef..a0ecb73735 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory } from 'vue-router'; +import { createRouter, createWebHashHistory } from 'vue-router'; import NProgress from 'nprogress'; // progress bar import 'nprogress/nprogress.css'; @@ -9,7 +9,7 @@ import createRouteGuard from './guard'; NProgress.configure({ showSpinner: false }); // NProgress Configuration const router = createRouter({ - history: createWebHistory(), + history: createWebHashHistory(), routes: [ { path: '/',