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