From 6416bcf4b955f4410ce2ee28201c0b23bed65df4 Mon Sep 17 00:00:00 2001 From: jyx <2012969435@qq.com> Date: Wed, 9 Oct 2024 15:20:45 +0800 Subject: [PATCH] fixbug --- utils/service/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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({