mirror of
https://github.com/YMFE/yapi.git
synced 2025-03-07 14:16:52 +08:00
fix: modify
This commit is contained in:
parent
18442ed387
commit
f85ba9983d
@ -37,6 +37,7 @@ export default (state = initialState, action) => {
|
||||
return {
|
||||
...state,
|
||||
isLogin: true,
|
||||
role: action.payload.data.data.role,
|
||||
loginState: MEMBER_STATUS,
|
||||
uid: action.payload.data.data.uid,
|
||||
userName: action.payload.data.data.username,
|
||||
@ -52,7 +53,8 @@ export default (state = initialState, action) => {
|
||||
isLogin: false,
|
||||
loginState: GUEST_STATUS,
|
||||
userName: null,
|
||||
uid: null
|
||||
uid: null,
|
||||
role: null
|
||||
}
|
||||
}
|
||||
case LOGIN_TYPE: {
|
||||
|
Loading…
Reference in New Issue
Block a user