@@ -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
}
@@ -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'
},
// 名师课堂
{
@@ -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
})