This commit is contained in:
2026-07-20 11:50:47 +08:00
parent 95d43746f6
commit 019ed28d37
401 changed files with 61622 additions and 23869 deletions
+2 -3
View File
@@ -2,8 +2,7 @@
* 路由配置
*/
import NProgress from 'nprogress';
import type { _RouteLocationBase } from 'vue-router';
import { createRouter, createWebHistory } from 'vue-router';
import { createRouter, createWebHashHistory } from 'vue-router';
import { WHITE_LIST, REDIRECT_PATH, LAYOUT_PATH } from '@/config/setting';
import { useUserStore } from '@/store/modules/user';
import { getToken } from '@/utils/token-util';
@@ -18,7 +17,7 @@ NProgress.configure({
const router = createRouter({
routes,
history: createWebHistory(),
history: createWebHashHistory(),
scrollBehavior() {
return { top: 0 };
}