diff --git a/web_src/src/components/live.vue b/web_src/src/components/live.vue index 4af8e5e7..9acadaec 100755 --- a/web_src/src/components/live.vue +++ b/web_src/src/components/live.vue @@ -22,8 +22,8 @@ gridTemplateRows: layout[spiltIndex].rows, gap: '4px', backgroundColor: '#a9a8a8'}">
-
无信号
- {{videoTip[i-1]?videoTip[i-1]:"无信号"}}
+ @@ -48,6 +48,7 @@ export default { data() { return { videoUrl: [''], + videoTip: [''], spiltIndex: 2,//分屏 playerIdx: 0,//激活播放器 @@ -168,6 +169,8 @@ export default { this.save(channelId) let idxTmp = this.playerIdx + this.setPlayUrl("", idxTmp); + this.$set(this.videoTip, idxTmp, "正在拉流...") this.$axios({ method: 'get', url: '/api/common/channel/play', @@ -184,7 +187,7 @@ export default { } this.setPlayUrl(videoUrl, idxTmp); } else { - this.$message.error(res.data.msg); + this.$set(this.videoTip, idxTmp, "播放失败: " + res.data.msg) } }).catch(function (e) { }).finally(() => {