|
@@ -41,11 +41,11 @@ function request(options,hasNoToken) {
|
|
}, 10);
|
|
}, 10);
|
|
setTimeout(function() {
|
|
setTimeout(function() {
|
|
const currentRoute = getRoutePath();
|
|
const currentRoute = getRoutePath();
|
|
- mpvue.removeStorage({
|
|
|
|
- key: 'token'
|
|
|
|
- });
|
|
|
|
|
|
+ uni.setStorageSync('token','')
|
|
const url = `/pages/login/login?lanuch=${currentRoute.lanuch}&path=` + encodeURIComponent(currentRoute.url);
|
|
const url = `/pages/login/login?lanuch=${currentRoute.lanuch}&path=` + encodeURIComponent(currentRoute.url);
|
|
- mpvue.reLaunch({ url });
|
|
|
|
|
|
+ uni.reLaunch({
|
|
|
|
+ url: url
|
|
|
|
+ })
|
|
}, 1000);
|
|
}, 1000);
|
|
} else {
|
|
} else {
|
|
resolve(res.data);
|
|
resolve(res.data);
|