edu/uniapp/src/utils/auth.ts

7 lines
142 B
TypeScript

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