perf: 登录后获取permissions

This commit is contained in:
xingyu 2022-07-13 11:50:45 +08:00
parent 753b73972b
commit db223d50d3
2 changed files with 6 additions and 2 deletions

View File

@ -10,18 +10,21 @@ const List: {
password: string password: string
role: string role: string
roleId: string roleId: string
permissions: string | string[]
}[] = [ }[] = [
{ {
username: 'admin', username: 'admin',
password: 'admin', password: 'admin',
role: 'admin', role: 'admin',
roleId: '1' roleId: '1',
permissions: '*.*.*'
}, },
{ {
username: 'test', username: 'test',
password: 'test', password: 'test',
role: 'test', role: 'test',
roleId: '2' roleId: '2',
permissions: ['example:dialog:create', 'example:dialog:delete']
} }
] ]

View File

@ -8,4 +8,5 @@ export type UserType = {
password: string password: string
role: string role: string
roleId: string roleId: string
permissions: string | string[]
} }