From 17e4a0bc7475da7637e37c6498ba92080e81387c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E7=BA=A2=E4=B8=BD?= <1181930680@qq.com> Date: Fri, 29 Nov 2024 13:42:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/city/edit.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/data/city/edit.vue b/src/views/data/city/edit.vue index 918d6d6..e3d082d 100644 --- a/src/views/data/city/edit.vue +++ b/src/views/data/city/edit.vue @@ -218,6 +218,7 @@ */ const handleNodeClick = (data, node, extra) => { parentCode.value = node; + formData.parentCode = node.areaCode }; /** @@ -270,6 +271,7 @@ formData.pid = props.itemData.pid; } else if (props.itemData) { formData.pid = props.itemData.id; + formData.parentCode = props.itemData.areaCode; } });