mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 12:26:48 +08:00
Merge branch 'origin/zcwy_0511' into dev0731
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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'});
|
||||||
|
|||||||
Reference in New Issue
Block a user