diff --git a/web/src/api/commonChannel.js b/web/src/api/commonChannel.js index d008ca0c5..6d8a8e436 100644 --- a/web/src/api/commonChannel.js +++ b/web/src/api/commonChannel.js @@ -441,14 +441,14 @@ export function deletePreset({ channelId, presetId }) { /** * command: on 开启, off 关闭 */ -export function auxiliary({ channelId, command, switchId }) { +export function auxiliary({ channelId, command, auxiliaryId }) { return request({ method: 'get', url: '/api/common/channel/front-end/auxiliary', params: { channelId: channelId, command: command, - switchId: switchId + auxiliaryId: auxiliaryId } }) } diff --git a/web/src/views/common/channelPlayer/ptzSwitch.vue b/web/src/views/common/channelPlayer/ptzSwitch.vue index 1acf1af6f..c3636164f 100644 --- a/web/src/views/common/channelPlayer/ptzSwitch.vue +++ b/web/src/views/common/channelPlayer/ptzSwitch.vue @@ -3,7 +3,7 @@ { this.$message({