-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
关于本系统的用户RoleInfo #259
Comments
我也觉得这里应该是这样的:
|
这里只是模拟数据,到最后还是转成了数组。这个我可以调整下 @Action
async getUserInfoAction({ userId }: GetUserInfoByUserIdParams) {
const userInfo = await getUserInfoById({ userId });
const { role } = userInfo;
const roleList = [role.value] as RoleEnum[];
this.commitUserInfoState(userInfo);
this.commitRoleListState(roleList);
return userInfo;
} |
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
这里 的role 字段 应该是个集合把 ,一个用户应该有多个角色的!!!
Problem
If the feature requests relates to a problem, please describe the problem you are trying to solve here.
Expected behaviour
What should happen? Please describe the desired behaviour.
Alternatives
What are the alternative solutions? Please describe what else you have considered?
The text was updated successfully, but these errors were encountered: