From 0b2357a173a2bc52f3532bfcf93ff31daf226231 Mon Sep 17 00:00:00 2001
From: zhouwenxuan <1175765986@qq.com>
Date: 星期三, 06 九月 2023 14:44:23 +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