diff --git a/code/VideoAccess-VCMP/web/client/src/layout/index.jsx b/code/VideoAccess-VCMP/web/client/src/layout/index.jsx index 00370c9..8c0c6c8 100644 --- a/code/VideoAccess-VCMP/web/client/src/layout/index.jsx +++ b/code/VideoAccess-VCMP/web/client/src/layout/index.jsx @@ -154,7 +154,7 @@ const Root = props => { const { data } = e if (data && data.action) { if (data.action == 'initUser') { - await store.dispatch(actions.auth.initAuth(e.data)) + await store.dispatch(actions.auth.initAuth(data.user)) } else if (data.action == 'logout') { await store.dispatch(actions.auth.logout()) } @@ -190,7 +190,7 @@ const Root = props => { : '' } -