优化信令配置展示界面

This commit is contained in:
648540858
2022-01-30 15:58:15 +08:00
parent 646419e4ad
commit 8d5764b9a0
4 changed files with 122 additions and 35 deletions

View File

@@ -212,10 +212,10 @@ export default {
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 @@ export default {
streamInfo: res.data.data,
hasAudio: itemData.hasAudio
});
that.initData();
setTimeout(()=>{
that.initData();
},1000)
}else {
that.$message.error(res.data.msg);
}