mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 20:06:48 +08:00
api return data list edit
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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'});
|
||||
|
||||
Reference in New Issue
Block a user