diff --git a/web/client/src/sections/problem/components/inspection.jsx b/web/client/src/sections/problem/components/inspection.jsx
index a129dee..9d567e5 100644
--- a/web/client/src/sections/problem/components/inspection.jsx
+++ b/web/client/src/sections/problem/components/inspection.jsx
@@ -86,7 +86,6 @@ const Inspection = ({ dispatch, actions, user, route, statistic }) => {
dispatch(problem.putAlarmApplicationNoted({ inspectionId: patrolAbnormal[pictureId].id }))
}
}, 2000)
- setPictureData(patrolAbnormal[pictureId])
}
}, [pictureId]);
@@ -103,19 +102,6 @@ const Inspection = ({ dispatch, actions, user, route, statistic }) => {
{picturePop ? {pictureData.app?.name}
+ title={{pictureData?.app?.name}
{
width={837}
onCancel={() => {
setPicturePop(false)
+ setPictureId('')
if (timer) clearTimeout(timer)
}}
>
diff --git a/web/client/src/sections/problem/containers/dataAlarm.jsx b/web/client/src/sections/problem/containers/dataAlarm.jsx
index f5303f4..e4699fb 100644
--- a/web/client/src/sections/problem/containers/dataAlarm.jsx
+++ b/web/client/src/sections/problem/containers/dataAlarm.jsx
@@ -60,9 +60,11 @@ const DataAlarm = ({ match, dispatch, actions, user, loading, socket, iotVcmpWeb
attribute(tableType[route], route);
//视频平台token
- dispatch(problem.getVcmpAuth({})).then((res) => {
- if (res.success) setVideoToken(res.payload.data?.token)
- })
+ if (route == 'videoAbnormal') {
+ dispatch(problem.getVcmpAuth({})).then((res) => {
+ if (res.success) setVideoToken(res.payload.data?.token)
+ })
+ }
}, [])
// console.log(videoData);