修复前端布防撤防调用失败
This commit is contained in:
@@ -47,14 +47,22 @@ export function updateDeviceTransport(deviceId, streamMode) {
|
||||
export function setGuard(deviceId) {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: `/api/device/control/guard/${deviceId}/SetGuard`
|
||||
url: `/api/device/control/guard`,
|
||||
params: {
|
||||
deviceId: deviceId,
|
||||
guardCmd: 'SetGuard'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function resetGuard(deviceId) {
|
||||
return request({
|
||||
method: 'get',
|
||||
url: `/api/device/control/guard/${deviceId}/ResetGuard`
|
||||
url: `/api/device/control/guard`,
|
||||
params: {
|
||||
deviceId: deviceId,
|
||||
guardCmd: 'ResetGuard'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -362,7 +362,7 @@ export default {
|
||||
})
|
||||
},
|
||||
resetGuard: function(itemData) {
|
||||
this.$store.dispatch('device/ResetGuard', itemData.deviceId)
|
||||
this.$store.dispatch('device/resetGuard', itemData.deviceId)
|
||||
.then((data) => {
|
||||
this.$message.success({
|
||||
showClose: true,
|
||||
|
||||
Reference in New Issue
Block a user