feat: 完善用户管理页面

添加CRUD功能,修复部分已知bug
This commit is contained in:
chuan
2021-12-14 20:45:13 +08:00
parent 63abf40adf
commit 99fd2f5db5
3 changed files with 108 additions and 186 deletions

View File

@@ -85,6 +85,7 @@ const userModule: Module<UserState, RootStateTypes> = {
if (!data) {
return reject('Verification failed, please Login again.')
}
console.log(data)
const {nickname, avatar, roles, perms} = data
if (!roles || roles.length <= 0) {
reject('getUserInfo: roles must be a non-null array!')