查看返回参数

master
ZhiShuo_Lou 2023-11-23 09:35:34 +08:00
parent 284f128f3e
commit f104e4205e
1 changed files with 3 additions and 5 deletions

View File

@ -222,13 +222,12 @@ export default {
alert("围栏编辑成功!")
this.dialogVisible=false
}
this.getFenceList()
this.$router.push("/car/fence")
})
},
//
deleteFence(id) {
deleteFenceById(id).then(res =>{
console.log(res)
this.getFenceList()
})
},
@ -238,11 +237,10 @@ export default {
onSubmit() {
insertFence(this.insertFences).then(res =>{
this.dialogVisibleTwo = false
if (res.data.code === 500){
if (res.code === 500){
alert("添加围栏失败!");
}
alert("添加围栏成功!")
this.getFenceList()
this.$router.push("/car/fence")
})
},
getFenceList() {