From 0f182d83155a378da1248c983efe876704153600 Mon Sep 17 00:00:00 2001 From: pengYYY Date: Thu, 23 Dec 2021 10:45:56 +0800 Subject: [PATCH] fix(router): revert to hash router --- src/router/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 6f3acd9..aabb453 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'; +import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'; import baseRouters from './modules/base'; import componentsRouters from './modules/components'; @@ -28,7 +28,7 @@ export const page404 = { }; const router = createRouter({ - history: createWebHistory(), + history: createWebHashHistory(), routes: defaultRouterList, scrollBehavior() { return {