tijiao
This commit is contained in:
@@ -156,7 +156,7 @@ $http.dataFactory = async function (res) {
|
||||
// 返回正确的结果(then接受数据)
|
||||
return Promise.resolve(httpData);
|
||||
} else if (httpData.code == "401") {
|
||||
if (uni.getStorageSync('guidePages') == 2) {
|
||||
// if (uni.getStorageSync('guidePages') == 2) {
|
||||
var jump = uni.getStorageSync('isJump') //以下解决多次跳转登录页的重点
|
||||
if (!jump) {
|
||||
//以下做token失效的操作
|
||||
@@ -178,7 +178,7 @@ $http.dataFactory = async function (res) {
|
||||
}, 100);
|
||||
uni.setStorageSync('isJump', 'true')
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
} else if (httpData.code == "500" && !httpData.msg) {
|
||||
//500
|
||||
|
||||
Reference in New Issue
Block a user