浏览代码

修改bug

Renxy 1 年之前
父节点
当前提交
d943542077
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/pages/Cad/index.js

+ 4 - 1
src/pages/Cad/index.js

@@ -104,7 +104,10 @@ const CadDemo = () => {
   const { data: projectList } = useRequest(queryApprovalProject, {
     formatResult: (res) => {
       return res?.data?.map((item) => {
-        return { label: item.project_name, value: item.project_full_code };
+        return {
+          label: `${item.project_name}(${item.project_full_code})`,
+          value: item.id,
+        };
       });
     },
   });