pnkx-admin-mongo/pnkx-uniapp/utils/auth.js

14 lines
263 B
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
const TokenKey = 'App-Token'
export function getToken() {
return uni.getStorageSync(TokenKey)
}
export function setToken(token) {
return uni.setStorageSync(TokenKey, token)
}
export function removeToken() {
return uni.removeStorageSync(TokenKey)
}