Commit d108e1e252da969b90c94d45ab5c4bff3bd72f47

Authored by xp.Huang
2 parents d41e7649 475e0862

Merge branch 'fix/camera-list' into 'main_dev'

perf: 修复视频分屏模式无数据时会发送无效请求

See merge request yunteng/thingskit-front!1280
@@ -90,6 +90,7 @@ @@ -90,6 +90,7 @@
90 90
91 const { getResult } = useFingerprint(); 91 const { getResult } = useFingerprint();
92 const beforeVideoPlay = async (record: CameraRecordItem) => { 92 const beforeVideoPlay = async (record: CameraRecordItem) => {
  93 + if (!record.accessMode) return;
93 const { url, type } = await getPlayUrl(record); 94 const { url, type } = await getPlayUrl(record);
94 record.playSourceUrl = url; 95 record.playSourceUrl = url;
95 record.streamType = type; 96 record.streamType = type;