修复前端发送的错误请求

master
648540858 2024-12-13 15:23:28 +08:00
parent 6c5535ef1e
commit 381d92e047
1 changed files with 8 additions and 6 deletions

View File

@ -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 )