Kaynağa Gözat

修改登录type不存在权限字段问题

natasha 3 ay önce
ebeveyn
işleme
e88f42f434
1 değiştirilmiş dosya ile 11 ekleme ve 2 silme
  1. 11 2
      src/views/login/index.vue

+ 11 - 2
src/views/login/index.vue

@@ -382,6 +382,13 @@ export default {
         user_code = userInfor.user_code;
         user_type = userInfor.user_type;
         session_id = userInfor.session_id;
+        if (user_type === "APP") {
+          this.userMessage = null;
+          this.isPc = true;
+          this.LoginOrRegistration = "login";
+          removeToken();
+          return;
+        }
         let MethodName = "login_control-Is_Effective_User";
         getAcsCode(MethodName, {
           UserCode: user_code,
@@ -400,7 +407,8 @@ export default {
               location.href = `/GCLS-LC/#/EnterSys`;
             } else {
               if (
-                userInfor.popedom_code_list.indexOf(2000001) > -1 ||
+                (userInfor.popedom_code_list &&
+                  userInfor.popedom_code_list.indexOf(2000001) > -1) ||
                 userInfor.user_type == "STUDENT"
               ) {
                 this.isPc = false;
@@ -561,7 +569,8 @@ export default {
                 location.href = localStorage.getItem("testLink");
                 localStorage.removeItem("testLink");
               } else if (
-                res.popedom_code_list.indexOf(2000001) > -1 ||
+                (res.popedom_code_list &&
+                  res.popedom_code_list.indexOf(2000001) > -1) ||
                 res.user_type == "STUDENT"
               ) {
                 this.$message.warning(this.$t("Key247") + "....");