auth.js 298 B

1234567891011121314
  1. import { authorityKey } from '@/config/index.js'
  2. // token
  3. export function getToken() {
  4. return uni.getStorageSync(authorityKey)
  5. }
  6. export function setToken(token) {
  7. return uni.setStorageSync(authorityKey, token)
  8. }
  9. export function removeToken() {
  10. return uni.removeStorageSync(authorityKey)
  11. }