edu/uniapp/src/utils/auth.ts

7 lines
145 B
TypeScript

import { TOKEN_KEY } from '@/enums/cacheEnums'
import cache from './cache'
export function getToken() {
return cache.get(TOKEN_KEY) || ''
}