fix(router): revert to hash router

This commit is contained in:
pengYYY 2021-12-23 10:45:56 +08:00
parent 6f2c9d3f2e
commit 0f182d8315

View File

@ -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 {