perf: 登录后获取permissions

master
xingyu 3 years ago
parent 753b73972b
commit db223d50d3

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

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

Loading…
Cancel
Save