From a35abcd9cd5a36651a400ce3e50d638d787117e6 Mon Sep 17 00:00:00 2001 From: luozhun <2025254074@qq.com> Date: Fri, 1 Nov 2024 11:38:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E6=94=BF=E5=8C=BA=E5=88=92=E7=BA=A7?= =?UTF-8?q?=E8=81=94=20=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/tree/AdministrativeDivisionTree.vue | 6 +++++- superManagement/src/views/test.vue | 9 +-------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/superManagement/src/components/tree/AdministrativeDivisionTree.vue b/superManagement/src/components/tree/AdministrativeDivisionTree.vue index 1ae99ef..c6a45f4 100644 --- a/superManagement/src/components/tree/AdministrativeDivisionTree.vue +++ b/superManagement/src/components/tree/AdministrativeDivisionTree.vue @@ -50,7 +50,11 @@ const administrativeDivisionByParentCode = async (code: string = '0'): Promise[]>('/common/administrativeDivisionByParentCode', { parentCode: code }) - return resp.data; + //解决点击无加载提示 + return resp.data.map(item => { + delete item.children + return item + }); } onMounted(async () => { diff --git a/superManagement/src/views/test.vue b/superManagement/src/views/test.vue index b712762..0ada657 100644 --- a/superManagement/src/views/test.vue +++ b/superManagement/src/views/test.vue @@ -1,12 +1,5 @@