张延森 5 年前
父节点
当前提交
b772f1361b
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      src/reducers/user.js

+ 5
- 1
src/reducers/user.js 查看文件

30
           }
30
           }
31
         }
31
         }
32
       } else {
32
       } else {
33
-        const { person } = action.payload || {}
33
+        const { person, extraInfo, miniApp } = action.payload || {}
34
         const newPerson = mergeNotNull(state.userInfo.person, person)
34
         const newPerson = mergeNotNull(state.userInfo.person, person)
35
+        const newExtraInfo = mergeNotNull(state.userInfo.extraInfo, extraInfo)
36
+        const newMiniApp = mergeNotNull(state.userInfo.miniApp, miniApp)
35
         return {
37
         return {
36
           ...state,
38
           ...state,
37
           userInfo: {
39
           userInfo: {
38
             ...state.userInfo,
40
             ...state.userInfo,
39
             ...action.payload,
41
             ...action.payload,
40
             person: newPerson,
42
             person: newPerson,
43
+            extraInfo: newExtraInfo,
44
+            miniApp: newMiniApp,
41
           }
45
           }
42
         }
46
         }
43
       }
47
       }