outaozhen 3 年之前
父節點
當前提交
d4ecf266d5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/Institutions/Staff/components/StaffDrawer.tsx

+ 1 - 1
src/pages/Institutions/Staff/components/StaffDrawer.tsx

@@ -102,7 +102,7 @@ const StaffDrawer: React.FC<StaffModalProps> = ({
         widget: 'treeSelect',
         props: {
           treeDefaultExpandAll: true,
-          treeData: [organizationList.label]
+          treeData: organizationList.map(item => item.label)
         }
       })
     })