From 381d92e047852c9cd9bac38b35885d5433480243 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: Fri, 13 Dec 2024 15:23:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=9A=84=E9=94=99=E8=AF=AF=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web_src/src/components/dialog/recordDownload.vue | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/web_src/src/components/dialog/recordDownload.vue b/web_src/src/components/dialog/recordDownload.vue index 1dffa767..fc4f7400 100755 --- a/web_src/src/components/dialog/recordDownload.vue +++ b/web_src/src/components/dialog/recordDownload.vue @@ -120,12 +120,14 @@ export default { }, stopDownloadRecord: function (callback) { - this.$axios({ - method: 'get', - url: '/api/gb_record/download/stop/' + this.deviceId + "/" + this.channelId+ "/" + this.stream - }).then((res)=> { - if (callback) callback(res) - }); + if (this.deviceId && this.channelId && this.stream) { + this.$axios({ + method: 'get', + url: '/api/gb_record/download/stop/' + this.deviceId + "/" + this.channelId+ "/" + this.stream + }).then((res)=> { + if (callback) callback(res) + }); + } }, downloadFileClientEvent: function (){ // window.open(this.downloadFile )