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 @@