From 34beab231dc992f3381d437591d871791cfdf4ec Mon Sep 17 00:00:00 2001 From: ZhiShuo_Lou <13209945+zhishuo-lou@user.noreply.gitee.com> Date: Thu, 23 Nov 2023 09:39:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E8=BF=94=E5=9B=9E=E5=8F=82?= =?UTF-8?q?=E6=95=B02?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/car/fence.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/views/car/fence.vue b/src/views/car/fence.vue index edd53cc..063a1db 100644 --- a/src/views/car/fence.vue +++ b/src/views/car/fence.vue @@ -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.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() {