From 55f5543d41569f7c42f50799b2200393ffd5b31a Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期日, 04 八月 2024 10:55:29 +0800
Subject: [PATCH] addd 支持特殊二维码
---
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