Browse Source

fix: 统一BasicUserInfo (#8133)

pull/8134/head
luoqiz 3 months ago
committed by GitHub
parent
commit
14d03a1c2d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      packages/@core/base/typings/src/basic.d.ts
  2. 26
      packages/stores/src/modules/user.ts

1
packages/@core/base/typings/src/basic.d.ts

@ -8,6 +8,7 @@ type SelectOption = BasicOption;
type TabOption = BasicOption;
interface BasicUserInfo {
[key: string]: any;
/**
* 头像
*/

26
packages/stores/src/modules/user.ts

@ -1,28 +1,6 @@
import { acceptHMRUpdate, defineStore } from 'pinia';
import type { BasicUserInfo } from '@vben-core/typings';
interface BasicUserInfo {
[key: string]: any;
/**
* 头像
*/
avatar: string;
/**
* 用户昵称
*/
realName: string;
/**
* 用户角色
*/
roles?: string[];
/**
* 用户id
*/
userId: string;
/**
* 用户名
*/
username: string;
}
import { acceptHMRUpdate, defineStore } from 'pinia';
interface AccessState {
/**

Loading…
Cancel
Save