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) { // 已经停止过