[UI] 修复巡航

This commit is contained in:
lin
2025-04-29 09:18:33 +08:00
parent 55aff6f3f8
commit a916cc2252
3 changed files with 13 additions and 7 deletions

View File

@@ -99,7 +99,7 @@ export default {
},
gotoPreset: function(preset) {
console.log(preset)
this.$store.dispatch('frontEnd/callPreset', [this.deviceId, this.channelDeviceId, this.ptzPresetId])
this.$store.dispatch('frontEnd/callPreset', [this.deviceId, this.channelDeviceId, preset.presetId])
.then(data => {
this.$message({
showClose: true,
@@ -128,7 +128,7 @@ export default {
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
this.$store.dispatch('frontEnd/deletePreset', [this.deviceId, this.channelDeviceId, this.ptzPresetId])
this.$store.dispatch('frontEnd/deletePreset', [this.deviceId, this.channelDeviceId, preset.presetId])
.then(data => {
setTimeout(() => {
this.getPresetList()