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