From 57e82130c398bf5279ddd72214e898727368fb42 Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Mon, 19 Sep 2022 11:26:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20/video=5Fplay=5Fstatus=20=E5=95=86?= =?UTF-8?q?=E7=94=A8=E4=B8=8D=E8=83=BD=E6=AD=A3=E5=B8=B8=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/client/src/layout/containers/layout/index.jsx | 4 +++- code/VideoAccess-VCMP/web/client/src/layout/index.jsx | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx b/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx index 23f1ec7..934eb79 100644 --- a/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx +++ b/code/VideoAccess-VCMP/web/client/src/layout/containers/layout/index.jsx @@ -49,7 +49,9 @@ const LayoutContainer = props => { useEffect(() => { 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'); } if (msg) { diff --git a/code/VideoAccess-VCMP/web/client/src/layout/index.jsx b/code/VideoAccess-VCMP/web/client/src/layout/index.jsx index ced72fb..dfddebf 100644 --- a/code/VideoAccess-VCMP/web/client/src/layout/index.jsx +++ b/code/VideoAccess-VCMP/web/client/src/layout/index.jsx @@ -165,7 +165,7 @@ const Root = props => { await store.dispatch(actions.auth.logout()) } } - + console.log(data); setAuthCrossLoading(false) }); // setAuthCrossLoading(false) @@ -202,8 +202,14 @@ const Root = props => { } // setMicroAppWaiting(false) + if (props.location.pathname == '/video_play_status') { + setAuthCrossLoading(false) + setMicroAppWaiting(false) + } }, []) + console.log(authCrossLoading, microAppWaiting); + return ( <> {