From c1254b5b09ee914fa2d8321a8ed228e92fc5f6ac Mon Sep 17 00:00:00 2001 From: lin <648540858@qq.com> Date: Tue, 11 Nov 2025 22:03:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E5=81=9C=E6=AD=A2=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=8F=82=E6=95=B0=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/store/modules/play.js | 2 +- web/src/views/device/channel/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web/src/store/modules/play.js b/web/src/store/modules/play.js index 9ec08a902..668aecf51 100644 --- a/web/src/store/modules/play.js +++ b/web/src/store/modules/play.js @@ -11,7 +11,7 @@ const actions = { }) }) }, - stop({ commit }, [deviceId, channelId]) { + stop({ commit }, { deviceId, channelId }) { return new Promise((resolve, reject) => { stop(deviceId, channelId).then(response => { const { data } = response diff --git a/web/src/views/device/channel/index.vue b/web/src/views/device/channel/index.vue index 0fd52293a..1c34c5305 100755 --- a/web/src/views/device/channel/index.vue +++ b/web/src/views/device/channel/index.vue @@ -422,7 +422,10 @@ export default { }) }, stopDevicePush: function(itemData) { - this.$store.dispatch('play/stop', [this.deviceId, itemData.deviceId]).then(data => { + this.$store.dispatch('play/stop', { + deviceId: this.deviceId, + channelId: itemData.deviceId + }).then(data => { this.initData() }).catch((error) => { if (error.response.status === 402) { // 已经停止过