From 09470bef96d48373219ac03315a4391c24accf98 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 19 十一月 2020 16:00:02 +0800 Subject: [PATCH] 添加网页自动转码,以支持h265 g.711的播放 --- web_src/src/components/channelList.vue | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue index b539e8c..b3872ee 100644 --- a/web_src/src/components/channelList.vue +++ b/web_src/src/components/channelList.vue @@ -234,6 +234,12 @@ }).then(function (res) { console.log(JSON.stringify(res)); that.initData(); + }).catch(function (error) { + if (error.response.status == 402) { // 宸茬粡鍋滄杩� + that.initData(); + }else { + console.log(e) + } }); }, -- Gitblit v1.8.0