Sfoglia il codice sorgente

update:beta显示判断&&校内账号登录异常信息补充

OnePsycho 3 anni fa
parent
commit
20b3852e88

+ 1 - 3
TEAMModelOS/ClientApp/src/access/login.js

@@ -106,9 +106,7 @@ export default {
 			try{
 				let studentInfo = withToken ? await $api.login.getStuInfoByToken(params) : await $api.login.getStudentInfoByAccount(params)
 				if(studentInfo.error){
-					if(studentInfo.error === 2){
-						app.$Message.warning(studentInfo.message)
-					}
+					app.$Message.warning(studentInfo.message)
 					j(studentInfo)
 					return
 				}

+ 1 - 1
TEAMModelOS/ClientApp/src/common/BaseLayout.vue

@@ -471,7 +471,7 @@ export default {
                             role: 'admin',
                             permission: 'research-read|research-upd',
                             menuName: 'courseCenter',
-                            isShow: this.$store.state.config.srvAdrType != 'product'
+                            isShow: this.$store.state.config.srvAdrType === 'test'
                         },
                         // 名师课堂
                         {

+ 6 - 1
TEAMModelOS/ClientApp/src/view/login/page/Student.vue

@@ -449,7 +449,12 @@
 									id: this.loginForm.id,
 									pass: this.loginForm.pass
 								}).then(res => {
-									result = res
+									if(!res.error){
+										result = res
+									}else{
+										this.$Message.warning(res.message)
+										this.loading = false
+									}
 								}).catch(err => {
 									isFail = true
 								})