lilei 2 vuotta sitten
vanhempi
commit
286897c81d
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      api/request.js

+ 4 - 4
api/request.js

@@ -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);