From 45237a5746e794060e48bd172161c08660621d5c Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期二, 08 八月 2023 17:21:18 +0800 Subject: [PATCH] 登陆缓存 样式调整 --- common/request.js | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/common/request.js b/common/request.js index ae6e571..b659d38 100644 --- a/common/request.js +++ b/common/request.js @@ -31,6 +31,8 @@ }); rejected(res.data.msg); setTimeout(()=>{ + uni.clearStorageSync(); + uni.clearStorage(); uni.navigateTo({ url: '/pages/index/index' }) @@ -57,6 +59,11 @@ icon: "none", title: '服务响应失败' }); + uni.clearStorageSync(); + uni.clearStorage(); + uni.navigateTo({ + url: '/pages/index/index' + }) rejected(err); } uni.request(options); -- Gitblit v1.9.2