🐞 fix(用户信息): 修复无法获取用户信息的问题

This commit is contained in:
xuan 2022-11-29 14:59:43 +08:00
parent bc35009bf1
commit 35f3bb4286

View File

@ -20,7 +20,7 @@ export default () => {
const setUserInfo = (userInfoProp: UserParam) => {
// @ts-expect-error data 类型没有约束好
dispatch({ type: UserInfoActionType.SET_USERINFO, data: { userInfoProp } })
dispatch({ type: UserInfoActionType.SET_USERINFO, data: { userInfo: userInfoProp } })
}
const setAdminUserInfo = (adminUserInfo: UserAdminParam) => {