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 )