From b0d3bf3ed9af77f3642874abd021dd52af98d953 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 15 二月 2022 17:52:37 +0800
Subject: [PATCH] 添加通道导入实例文件
---
web_src/src/components/channelList.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue
index 2b06870..7dda69a 100644
--- a/web_src/src/components/channelList.vue
+++ b/web_src/src/components/channelList.vue
@@ -212,10 +212,10 @@
url: '/api/play/start/' + deviceId + '/' + channelId
}).then(function (res) {
that.isLoging = false;
- if (res.data.code == 0) {
+ if (res.data.code === 0) {
setTimeout(()=>{
- console.log("涓嬭浇鎴浘")
+
let snapId = deviceId + "_" + channelId;
that.loadSnap[snapId] = 0;
that.getSnapErrorEvent(snapId)
@@ -224,7 +224,10 @@
streamInfo: res.data.data,
hasAudio: itemData.hasAudio
});
- that.initData();
+ setTimeout(()=>{
+ that.initData();
+ },1000)
+
}else {
that.$message.error(res.data.msg);
}
--
Gitblit v1.8.0