From 001f9c3f30d486c2e03602d7cd0114dad908def5 Mon Sep 17 00:00:00 2001 From: mengkai Date: Mon, 14 Oct 2024 11:26:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E8=A1=8C=E6=94=BF?= =?UTF-8?q?=E5=9C=B0=E5=8C=BA=E5=88=87=E6=8D=A2=E9=AA=8C=E8=AF=81=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=B2=A1=E6=9B=B4=E6=96=B0=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/region/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manager/src/views/region/index.vue b/manager/src/views/region/index.vue index 64d46a71..12c6f13c 100644 --- a/manager/src/views/region/index.vue +++ b/manager/src/views/region/index.vue @@ -237,8 +237,10 @@ export default { }, // 树结构点击事件 changeTree(array, val) { - val.cityCode == "null" ? (val.cityCode = "") : val.cityCode; - this.$set(this, "formValidate", val); + const cloneVal = JSON.parse(JSON.stringify(val)) + cloneVal.cityCode == "null" ? (cloneVal.cityCode = "") : cloneVal.cityCode; + this.$set(this, "formValidate", cloneVal); + this.$refs.formValidate.resetFields() }, // 异步加载数据 loadData(item, callback) {