Browse Source
Merge branch 'vbenjs:main' into main
pull/8188/head
zhb410181
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
24 deletions
-
packages/@core/base/typings/src/basic.d.ts
-
packages/stores/src/modules/user.ts
|
|
|
@ -8,6 +8,7 @@ type SelectOption = BasicOption; |
|
|
|
type TabOption = BasicOption; |
|
|
|
|
|
|
|
interface BasicUserInfo { |
|
|
|
[key: string]: any; |
|
|
|
/** |
|
|
|
* 头像 |
|
|
|
*/ |
|
|
|
|
|
|
|
@ -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 { |
|
|
|
/** |
|
|
|
|