Commit d38f85ef authored by 李纪文's avatar 李纪文

fix: 修改组态

parent 85b4a188
...@@ -1296,7 +1296,7 @@ const ConfigurationView = (props) => { ...@@ -1296,7 +1296,7 @@ const ConfigurationView = (props) => {
const videoScanMethod = async (data) => { const videoScanMethod = async (data) => {
try { try {
const opRule = JSON.parse(data.opRule); const opRule = JSON.parse(data.opRule);
const { vdCode, vdList } = opRule; const { vdCode, vdList, vdName } = opRule;
if (!vdCode || !vdList) return setVideoData([]); if (!vdCode || !vdList) return setVideoData([]);
const detail = await getVideoDetail({ const detail = await getVideoDetail({
UserID: 1, UserID: 1,
...@@ -1326,7 +1326,7 @@ const ConfigurationView = (props) => { ...@@ -1326,7 +1326,7 @@ const ConfigurationView = (props) => {
address: list.address, address: list.address,
}); });
}); });
setVideoTitle(dataList?.deviceName || '视频查看'); setVideoTitle(vdName + '视频查看');
setVideoData(detailList); setVideoData(detailList);
detailList.length && setIsVideoVisible(true); detailList.length && setIsVideoVisible(true);
} catch (e) { } catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment