yangan
2024-07-09 3f798d6f31282420a4785e850278aee3c15de171
utils/status.js
@@ -5,7 +5,8 @@
   SuccessRedirect,
   FailRedirect,
   customerIdKey,
   nameKey
   nameKey,
   userId
} from './status.config.js';
const SetStorage = (key) => (value) => uni.setStorageSync(key, value);
@@ -15,6 +16,7 @@
export const setUsernameKey = SetStorage(UsernameKey);
export const setCustomerId = SetStorage(customerIdKey);
export const setName = SetStorage(nameKey)
export const setUserId = SetStorage(userId)
export const redirectHome = (path) => {
   uni.switchTab({
      url: path || SuccessRedirect