首次提交
This commit is contained in:
parent
9e3c9e794b
commit
0828a65606
@ -14,20 +14,6 @@ var request = function(config) {
|
|||||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
},
|
},
|
||||||
success(res) {
|
success(res) {
|
||||||
if (res.data.code == 9999) {
|
|
||||||
uni.clearStorageSync();
|
|
||||||
let pages = getCurrentPages();
|
|
||||||
let path = pages[pages.length - 1].$page.fullPath
|
|
||||||
let paths = path.split('?')
|
|
||||||
if (paths == '/pages/integral/integral' || paths ==
|
|
||||||
'/pages/shopping/shopping' || paths ==
|
|
||||||
'/pages/coupon/coupon' || paths ==
|
|
||||||
'/pages/materialbenefits/materialbenefits') {} else {
|
|
||||||
uni.navigateTo({
|
|
||||||
url: '/pages/login/login'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
resolve(res.data)
|
resolve(res.data)
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user