From 71ba67906896248aa2df5e70756b997fad9a9033 Mon Sep 17 00:00:00 2001
From: wk
Date: 星期一, 09 九月 2024 17:54:18 +0800
Subject: [PATCH] feat:门卫

---
 utils/status.js |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/utils/status.js b/utils/status.js
index 08ae5c6..13a5c5e 100644
--- a/utils/status.js
+++ b/utils/status.js
@@ -4,6 +4,7 @@
 	UsernameKey,
 	SuccessRedirect,
 	FailRedirect,
+	BaFailRedirect,
 	customerIdKey,
 	nameKey
 } from './status.config.js';
@@ -21,12 +22,24 @@
 	})
 }
 export const redirectLogin = (path) => {
+	let data=uni.getStorageSync('userList')?JSON.parse(uni.getStorageSync('userList')):[];
 	uni.clearStorageSync();
+	uni.setStorageSync("userList", JSON.stringify(data))
 	uni.reLaunch({
 		url: path || FailRedirect
 	})
 }
 
+export const redirectabLogin = (path) => {
+	let data=uni.getStorageSync('userList')?JSON.parse(uni.getStorageSync('userList')):[];
+	uni.clearStorageSync();
+	uni.setStorageSync("userList", JSON.stringify(data))
+	uni.reLaunch({
+		url: path || BaFailRedirect
+	})
+}
+
+
 // 鑾峰彇鐢ㄦ埛鐘舵��
 export const getStatesOne = (key) => uni.getStorageSync(key);
 

--
Gitblit v1.9.1