修改删除路由请求方式

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) { export function deleteFenceById(id) {
return request({ return request({
url: 'carBase/baseFence/deleteFence?fenceId='+ id, url: 'carBase/baseFence/deleteFence?fenceId='+ id,
method: 'post' method: 'get'
}) })
} }

View File

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