From 1c7c01de4fa7dcec3b978d21f98217260216f7e0 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期四, 20 六月 2024 16:26:11 +0800 Subject: [PATCH] fix:库管点击确认装卸报错 --- utils/status.js | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/utils/status.js b/utils/status.js index e930f61..13a5c5e 100644 --- a/utils/status.js +++ b/utils/status.js @@ -4,6 +4,7 @@ UsernameKey, SuccessRedirect, FailRedirect, + BaFailRedirect, customerIdKey, nameKey } from './status.config.js'; @@ -29,6 +30,16 @@ }) } +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