Ver código fonte

路由替换

songxy 9 meses atrás
pai
commit
0a7c478021

+ 0 - 1
client_h5/src/router/getUserInfo.ts

@@ -7,7 +7,6 @@ import { useDictStoreWithOut } from "@/utils/dict";
 const USERINFO_KEY: string = '_userInfo';
 const TOKEN_KEY: string = 'ACCESS_TOKEN';
 const EXPIRES_TIME_KEY: string = 'EXPIRES_TIME_KEY';
-useDictStoreWithOut()
 export const initUserInfoHandler = async (isStore: boolean = false) => {
   const userStore = useUserStoreWithOut();
   if (isStore) {

+ 0 - 2
client_h5/src/router/index.ts

@@ -14,8 +14,6 @@ const router = createRouter({
 })
 // 路由加载前
 router.beforeEach((to, from, next) => {
-  next()
-  return;
   getUserInfoPromise(true).then((isLogin) => {
     next(); 
     if (!isLogin) {