diff --git a/admin/src/views/system/dept/edit.vue b/admin/src/views/system/dept/edit.vue index fcb0943..37c2a82 100644 --- a/admin/src/views/system/dept/edit.vue +++ b/admin/src/views/system/dept/edit.vue @@ -9,7 +9,7 @@ @close="handleClose" > - + { const list = await deptAll(queryParams) // 根据id和pid处理层级关系 - lists.value = arrayToTree(list, '0') + lists.value = arrayToTree(list, '') console.log('lists', lists) loading.value = false