From 802290838fd05c7236dae780900b4bacb20c82df Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 02 八月 2024 16:27:26 +0800
Subject: [PATCH] add 二维码格式

---
 store/index.js |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/store/index.js b/store/index.js
index 528e0f9..69d8cd8 100644
--- a/store/index.js
+++ b/store/index.js
@@ -40,6 +40,7 @@
 			console.log('updateLogin', provider)
 			state.hasLogin = provider && true || false;
 			if (!state.hasLogin) {
+				state.currentInfo = {}
 				storage.removeItem('token')
 			}
 		},
@@ -53,15 +54,9 @@
 			state.currentInfo = {}
 			storage.removeItem('token')
 			message.showToast('退出登录成功')
-			// #ifdef APP
-			var KeepAliveModule = uni.requireNativePlugin("yh-nl") //保活组件
-
-			let ret = KeepAliveModule.stopLocation();
-			console.log('ret', ret)
-			// #endif
-			uni.redirectTo({
-				url: '/views/login/login'
-			})
+			// uni.redirectTo({
+			// 	url: '/views/login/login'
+			// })
 		},
 		setOpenid(state, openid) {
 			state.openid = openid

--
Gitblit v1.9.3