Browse Source

feat: 111

lanjianrong 3 years ago
parent
commit
986ff13e4e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/pages/Project/Management/components/Detail.tsx

+ 3 - 1
src/pages/Project/Management/components/Detail.tsx

@@ -227,7 +227,9 @@ const DetailModal: React.FC<ProjectModalProps> = ({
                 pageSize: 21400,
                 isCreated: '1'
               })
-              return code === consts.RET_CODE.SUCCESS ? items : []
+              return code === consts.RET_CODE.SUCCESS
+                ? items.map(item => ({ label: item.name, value: item.ID }))
+                : []
             }}
           />
           <ProFormDependency name={['createdID']}>