| | |
| | | UsernameKey, |
| | | SuccessRedirect, |
| | | FailRedirect, |
| | | customerIdKey |
| | | customerIdKey, |
| | | nameKey |
| | | } from './status.config.js'; |
| | | |
| | | const SetStorage = (key) => (value) => uni.setStorageSync(key, value); |
| | |
| | | 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 |