From df14d215c569aadd4515a6033d09739bbb8eff64 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期二, 03 九月 2024 08:41:25 +0800 Subject: [PATCH] feat:PCV库管补充细节 --- 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