From 1e347ca68f26a192f63e76879474ecf5af1d43c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E6=AF=85?= <1335909236@qq.com> Date: Mon, 15 Sep 2025 08:52:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=A4=BA=E7=99=BB=E5=BD=95=E5=90=8E?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=97=B6=E6=B8=85=E9=99=A4storage=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/index.js b/utils/index.js index db96283f..a8980585 100644 --- a/utils/index.js +++ b/utils/index.js @@ -82,6 +82,9 @@ export const request = (url, method = 'POST', data = {}, options = {}) => { success: (res) => { // console.log('请求成功,接口返参', res); if (res.statusCode == 401 || (res.statusCode == 500 && res.data.msg == "效验令牌失败")) { + uni.removeStorageSync('ctoken'); + uni.removeStorageSync('userId'); + uni.removeStorageSync('is_worker'); uni.showModal({ title: '提示', content: '请登录后查看',