diff --git a/utils/service/index.js b/utils/service/index.js index 848a07f..d9f46bf 100644 --- a/utils/service/index.js +++ b/utils/service/index.js @@ -32,8 +32,8 @@ const request = new Request({ // response.config.headers["Authorization"] = response.data.data.Token; // } if (response.data.code === 401) { - uni.clearStorageSync() - const params = new URLSearchParams(window.location.search) + uni.clearStorageSync()//清缓存 + const params = new URLSearchParams(window.location.search)//属性包含当前 URL 的查询字符串部分 const id = params.get('id') const pid = params.get('pid') uni.navigateTo({