diff --git a/api/ajax.js b/api/ajax.js index af22529..7d54f24 100644 --- a/api/ajax.js +++ b/api/ajax.js @@ -74,8 +74,8 @@ const jsonRequest=function(method,url,data){ let token=getToken(); if(!token){ token=''; - location.href=config.loginPath+"?returnUrl="+encodeURIComponent(window.location.href); - return + // location.href=config.loginPath+"?returnUrl="+encodeURIComponent(window.location.href); + // return } let headers={ 'XBOE-Access-Token':token @@ -91,8 +91,8 @@ const jsonRequest=function(method,url,data){ dataType: 'json', header: headers, success:function(rs,statusCode){ - if(rs.statusCode==200){ - if(rs.data.status==401 || rs.data.status==402){ + if(rs.statusCode==200 || rs.code.code == 200){ + if(rs.data.status==401 || rs.data.status==402 || rs.data.data.status==401){ removeToken(); toLogin(reUrl); // let loginPath=config.loginPath; diff --git a/pages/lecturer/certification/list.vue b/pages/lecturer/certification/list.vue index a744652..f9fd4ce 100644 --- a/pages/lecturer/certification/list.vue +++ b/pages/lecturer/certification/list.vue @@ -57,7 +57,7 @@ reviewId: this.reviewId }).then(res => { if (res.code == 200) { - this.lecturersList = res.data + this.lecturersList = res.data.list } else { this.lecturersList = [] // this.$refs.uToast.show({message:res.msg,type:'error'});