Browse Source

ifream visibility: 'hidden'

release_0.0.2
yuan_yi 3 years ago
parent
commit
51c2f84976
  1. 4
      code/VideoAccess-VCMP/web/client/src/layout/index.jsx

4
code/VideoAccess-VCMP/web/client/src/layout/index.jsx

@ -154,7 +154,7 @@ const Root = props => {
const { data } = e const { data } = e
if (data && data.action) { if (data && data.action) {
if (data.action == 'initUser') { 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') { } else if (data.action == 'logout') {
await store.dispatch(actions.auth.logout()) await store.dispatch(actions.auth.logout())
} }
@ -190,7 +190,7 @@ const Root = props => {
</ConfigProvider> </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> <p>你的浏览器不支持 iframe</p>
</iframe> </iframe>
</> </>

Loading…
Cancel
Save