Commit 475e08622515c978d3d230d1df419b54b273ee02

Authored by ww
1 parent d41e7649

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

@@ -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;