|
@@ -34,7 +34,8 @@ const install = (Vue, vm) => {
|
|
|
// 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的,所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
|
|
|
// const token = uni.getStorageSync('token');
|
|
|
// config.header.token = token;
|
|
|
-
|
|
|
+ // url加时间戳
|
|
|
+ config.url = config.url + '?t=' + Date.now()
|
|
|
// 此url参数为this.$u.get(url)中的url值
|
|
|
let noTokenList = ['/wechat/h5/user','/client/auth/verifyCode'];
|
|
|
if(noTokenList.includes(config.url)) config.header.noToken = true;
|