| | |
| | | UsernameKey, |
| | | SuccessRedirect, |
| | | FailRedirect, |
| | | BaFailRedirect, |
| | | customerIdKey, |
| | | nameKey |
| | | } from './status.config.js'; |
| | |
| | | }) |
| | | } |
| | | export const redirectLogin = (path) => { |
| | | let data=uni.getStorageSync('userList')?JSON.parse(uni.getStorageSync('userList')):[]; |
| | | uni.clearStorageSync(); |
| | | uni.setStorageSync("userList", JSON.stringify(data)) |
| | | uni.reLaunch({ |
| | | url: path || FailRedirect |
| | | }) |
| | | } |
| | | |
| | | 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); |
| | | |