|
|
@ -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 => { |
|
|
|
</ConfigProvider> |
|
|
|
: '' |
|
|
|
} |
|
|
|
<iframe id="iotAuth" src="http://localhost:5200/cross" style={{ position: 'absolute', top: 0 }} frameBorder={0} > |
|
|
|
<iframe id="iotAuth" src={"http://localhost:5200/cross"} style={{ position: 'absolute', top: 0, height: 1, visibility: 'hidden' }} frameBorder={0} > |
|
|
|
<p>你的浏览器不支持 iframe。</p> |
|
|
|
</iframe> |
|
|
|
</> |
|
|
|