From e0028a87cb4fc37759c9c33ecd20591fe6dd0aa7 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期一, 07 二月 2022 14:12:34 +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