This commit is contained in:
贾旖璇 2024-10-09 15:20:45 +08:00
parent 27bb29b7a2
commit 6416bcf4b9

View File

@ -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({