Browse Source

fix /video_play_status 商用不能正常加载

dev_trial
巴林闲侠 3 years ago
parent
commit
57e82130c3
  1. 4
      code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx
  2. 8
      code/VideoAccess-VCMP/web/client/src/layout/index.jsx

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

@ -49,7 +49,9 @@ const LayoutContainer = props => {
useEffect(() => { useEffect(() => {
NProgress.done(); NProgress.done();
if ((!user || !user.authorized) && !authCrossLoading) { console.log(user, authCrossLoading, props);
if ((!user || !user.authorized) && !authCrossLoading && props.location.pathname != '/video_play_status') {
console.log(123123);
history.push('/signin'); history.push('/signin');
} }
if (msg) { if (msg) {

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

@ -165,7 +165,7 @@ const Root = props => {
await store.dispatch(actions.auth.logout()) await store.dispatch(actions.auth.logout())
} }
} }
console.log(data);
setAuthCrossLoading(false) setAuthCrossLoading(false)
}); });
// setAuthCrossLoading(false) // setAuthCrossLoading(false)
@ -202,8 +202,14 @@ const Root = props => {
} }
// setMicroAppWaiting(false) // setMicroAppWaiting(false)
if (props.location.pathname == '/video_play_status') {
setAuthCrossLoading(false)
setMicroAppWaiting(false)
}
}, []) }, [])
console.log(authCrossLoading, microAppWaiting);
return ( return (
<> <>
{ {

Loading…
Cancel
Save