auth.js 258 B

12345678910111213
  1. const TokenKey = 'Admin-Token'
  2. export function getToken() {
  3. return uni.getStorageSync(TokenKey)
  4. }
  5. export function setToken(token) {
  6. return uni.setStorageSync(TokenKey, token)
  7. }
  8. export function removeToken() {
  9. return uni.removeStorageSync(TokenKey)
  10. }