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

fix: 修改组态

parent 85b4a188
......@@ -1296,7 +1296,7 @@ const ConfigurationView = (props) => {
const videoScanMethod = async (data) => {
try {
const opRule = JSON.parse(data.opRule);
const { vdCode, vdList } = opRule;
const { vdCode, vdList, vdName } = opRule;
if (!vdCode || !vdList) return setVideoData([]);
const detail = await getVideoDetail({
UserID: 1,
......@@ -1326,7 +1326,7 @@ const ConfigurationView = (props) => {
address: list.address,
});
});
setVideoTitle(dataList?.deviceName || '视频查看');
setVideoTitle(vdName + '视频查看');
setVideoData(detailList);
detailList.length && setIsVideoVisible(true);
} 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