通用通道支持停止实时流
This commit is contained in:
@@ -30,7 +30,7 @@ import {
|
||||
startCruise,
|
||||
startScan,
|
||||
stopCruise,
|
||||
stopScan, wiper, getAllForMap
|
||||
stopScan, wiper, getAllForMap, stopPlayChannel
|
||||
} from '@/api/commonChannel'
|
||||
|
||||
const actions = {
|
||||
@@ -254,6 +254,16 @@ const actions = {
|
||||
})
|
||||
})
|
||||
},
|
||||
stopPlayChannel({ commit }, channelId) {
|
||||
return new Promise((resolve, reject) => {
|
||||
stopPlayChannel(channelId).then(response => {
|
||||
const { data } = response
|
||||
resolve(data)
|
||||
}).catch(error => {
|
||||
reject(error)
|
||||
})
|
||||
})
|
||||
},
|
||||
getList({ commit }, param) {
|
||||
return new Promise((resolve, reject) => {
|
||||
getList(param).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user