修改删除路由请求方式

master
ZhiShuo_Lou 2023-11-23 09:19:54 +08:00
parent 072d26099a
commit 0937c24fcb
2 changed files with 3 additions and 1 deletions

View File

@ -32,6 +32,6 @@ export function fenceList(data) {
export function deleteFenceById(id) {
return request({
url: 'carBase/baseFence/deleteFence?fenceId='+ id,
method: 'post'
method: 'get'
})
}

View File

@ -214,6 +214,7 @@ export default {
})
},
updateFence() {
this.updateFences.fenceLocation = ""
this.updateFences.fenceLocation = this.mapAddr
console.log(this.updateFences)
updateFenceMapAddr(this.updateFences).then(res =>{
@ -221,6 +222,7 @@ export default {
alert("围栏编辑成功!")
this.dialogVisible=false
}
this.getFenceList()
})
},
//