fix: 修复国标收流列表播放按钮 loading 不生效问题

This commit is contained in:
xiaoQQya
2025-06-26 13:24:15 +08:00
parent 380c42040f
commit 2b66404a2a

View File

@@ -119,7 +119,7 @@ export default {
sendDevicePush: function (row) { sendDevicePush: function (row) {
const deviceId = row.parentDeviceId const deviceId = row.parentDeviceId
const channelId = row.deviceId const channelId = row.deviceId
row.playing = true this.$set(row, "playing", true)
this.$store.dispatch("play/play", [deviceId, channelId]) this.$store.dispatch("play/play", [deviceId, channelId])
.then((data) => { .then((data) => {
this.$refs.devicePlayer.openDialog("media", deviceId, channelId, { this.$refs.devicePlayer.openDialog("media", deviceId, channelId, {
@@ -128,7 +128,7 @@ export default {
}) })
}) })
.finally(() => { .finally(() => {
row.playing = false this.$set(row, "playing", false)
}) })
}, },
stopDevicePush: function (row) { stopDevicePush: function (row) {