Prechádzať zdrojové kódy

fix: 路由模式改回去,等启用 sso 再改回来

yanglzh 1 rok pred
rodič
commit
45f16d0bd0
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      src/router/index.ts

+ 2 - 2
src/router/index.ts

@@ -1,4 +1,4 @@
-import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
+import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
 import NProgress from 'nprogress';
 import 'nprogress/nprogress.css';
 import { store } from '/@/store/index';
@@ -17,7 +17,7 @@ const whiteList = ['/login', '/ssoBack']
  * @link 参考:https://next.router.vuejs.org/zh/api/#createrouter
  */
 const router = createRouter({
-	history: createWebHistory(),
+	history: createWebHashHistory(),
 	routes: staticRoutes,
 });