查看返回参数2

master
ZhiShuo_Lou 2023-11-23 09:39:07 +08:00
parent f104e4205e
commit 34beab231d
1 changed files with 3 additions and 8 deletions

View File

@ -218,10 +218,8 @@ export default {
this.updateFences.fenceLocation = this.mapAddr
console.log(this.updateFences)
updateFenceMapAddr(this.updateFences).then(res =>{
if (res.data.code === 200){
alert("围栏编辑成功!")
this.dialogVisible=false
}
this.$router.push("/car/fence")
})
},
@ -237,10 +235,7 @@ export default {
onSubmit() {
insertFence(this.insertFences).then(res =>{
this.dialogVisibleTwo = false
if (res.code === 500){
alert("添加围栏失败!");
}
this.$router.push("/car/fence")
this.getFenceList()
})
},
getFenceList() {