Blame view

src/utils/auth/index.ts 276 Bytes
陈文彬 authored
1
2
3
4
5
6
7
8
9
10
import { userStore } from '/@/store/modules/user';
// import { permissionStore } from '@/store/modules/permission';
// import { RoleEnum } from '@/enums/roleEnum';

/**
 * @description:  获取token
 */
export function getToken(): string {
  return userStore.getTokenState;
}