소스 검색

用户信息以手机号为主

1
mo 3 년 전
부모
커밋
4ae7a94149
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/permission.js

+ 1 - 1
src/permission.js

@@ -92,7 +92,7 @@ router.beforeEach(async (to, from, next) => {
 
       NProgress.done()
     } else {
-      const hasGetUserInfo = store.getters.name
+      const hasGetUserInfo = store.getters.phone
       // 有名字 说明有用户信息 跳走
       if (hasGetUserInfo) {
         // const accessRoutes = await store.dispatch('permission/generateRoutes')