Merge branch 'origin/zcwy_0511' into dev0731

This commit is contained in:
zhangsir
2024-05-24 13:41:19 +08:00
2 changed files with 5 additions and 5 deletions

View File

@@ -74,8 +74,8 @@ const jsonRequest=function(method,url,data){
let token=getToken(); let token=getToken();
if(!token){ if(!token){
token=''; token='';
location.href=config.loginPath+"?returnUrl="+encodeURIComponent(window.location.href); // location.href=config.loginPath+"?returnUrl="+encodeURIComponent(window.location.href);
return // return
} }
let headers={ let headers={
'XBOE-Access-Token':token 'XBOE-Access-Token':token
@@ -91,8 +91,8 @@ const jsonRequest=function(method,url,data){
dataType: 'json', dataType: 'json',
header: headers, header: headers,
success:function(rs,statusCode){ success:function(rs,statusCode){
if(rs.statusCode==200){ if(rs.statusCode==200 || rs.code.code == 200){
if(rs.data.status==401 || rs.data.status==402){ if(rs.data.status==401 || rs.data.status==402 || rs.data.data.status==401){
removeToken(); removeToken();
toLogin(reUrl); toLogin(reUrl);
// let loginPath=config.loginPath; // let loginPath=config.loginPath;

View File

@@ -57,7 +57,7 @@
reviewId: this.reviewId reviewId: this.reviewId
}).then(res => { }).then(res => {
if (res.code == 200) { if (res.code == 200) {
this.lecturersList = res.data this.lecturersList = res.data.list
} else { } else {
this.lecturersList = [] this.lecturersList = []
// this.$refs.uToast.show({message:res.msg,type:'error'}); // this.$refs.uToast.show({message:res.msg,type:'error'});