Browse Source

用户信息以手机号为主

1
mo 3 năm trước cách đây
mục cha
commit
4ae7a94149
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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')