qingyiay
2023-06-20 3f10299a92e23fd902e4bd51a6d59f9bf0c7d7ec
utils/status.js
@@ -4,7 +4,8 @@
   UsernameKey,
   SuccessRedirect,
   FailRedirect,
   customerIdKey
   customerIdKey,
   nameKey
} from './status.config.js';
const SetStorage = (key) => (value) => uni.setStorageSync(key, value);
@@ -12,7 +13,8 @@
export const setToken = SetStorage(TokenKey);
export const setRefreshToken = SetStorage(RefreshToken);
export const setUsernameKey = SetStorage(UsernameKey);
export const setCustomerId = SetStorage(customerIdKey)
export const setCustomerId = SetStorage(customerIdKey);
export const setName = SetStorage(nameKey)
export const redirectHome = (path) => {
   uni.switchTab({
      url: path || SuccessRedirect