lsc 1 tháng trước cách đây
mục cha
commit
181954cc0c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/store/modules/user.js

+ 1 - 1
src/store/modules/user.js

@@ -81,7 +81,7 @@ const mutations = {
   },
   SET_USERINFO2: (state, userinfo2) => {
     state.userinfo2 = userinfo2;
-    window.topU.US.userInfo = Object.keys(state.userInfo2).length ? state.userinfo2 : state.userinfo
+    window.topU.US.userInfo = state.userInfo2 && Object.keys(state.userInfo2).length ? state.userinfo2 : state.userinfo
   },
 };