dedsudiyu пре 6 дана
родитељ
комит
6fce8c7833
2 измењених фајлова са 5 додато и 5 уклоњено
  1. 4 4
      .env.production
  2. 1 1
      src/views/login.vue

+ 4 - 4
.env.production

@@ -12,10 +12,10 @@ VUE_APP_RENEWAL_ENCODING = ''
 # ####################外网接口配置####################
 
 # 山西农大
-VUE_APP_BASE_API = 'lasfl.sxau.edu.cn/api'
+# VUE_APP_BASE_API = 'lasfl.sxau.edu.cn/api'
 
 # 1.8外网地址
-# VUE_APP_BASE_API = 'lab.zjznai.com/labTest'
+VUE_APP_BASE_API = 'lab.zjznai.com/labTest'
 
 # 1.88外网地址
 # VUE_APP_BASE_API = 'lab.zjznai.com/appTest'
@@ -29,10 +29,10 @@ VUE_APP_BASE_API = 'lasfl.sxau.edu.cn/api'
 # ####################内网接口配置####################
 
 # 山西农大
-VUE_APP_BASE_LOCAL_API = 'lasfl.sxau.edu.cn/api'
+# VUE_APP_BASE_LOCAL_API = 'lasfl.sxau.edu.cn/api'
 
 # 1.8内网地址
-# VUE_APP_BASE_LOCAL_API = '192.168.1.8/api'
+VUE_APP_BASE_LOCAL_API = '192.168.1.8/api'
 
 # 1.88内网地址
 # VUE_APP_BASE_LOCAL_API = '192.168.1.88/labSystem'

+ 1 - 1
src/views/login.vue

@@ -240,7 +240,7 @@
                 const userType = userInfo.userType
                 login(account, password, code, uuid, userType).then(res => {
                     if(res.code == 200){
-                        if(res.data.userType != 3){
+                        if(res.data.userType == 0 || res.data.userType == 1 || res.data.userType == 2){
                             this.text = "* 非院级大屏账号,无权登录本系统.";
                             this.loading = false;
                             this.getCode();