260720
This commit is contained in:
+2
-3
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user