提交 29736fff authored 作者: 钟是志's avatar 钟是志

渲染不出来

上级 84368701
...@@ -2,7 +2,7 @@ import RenderForm from "@/webPublic/FormInsertDiy/RenderForm"; ...@@ -2,7 +2,7 @@ import RenderForm from "@/webPublic/FormInsertDiy/RenderForm";
import { fetchTemplateById } from '@/webPublic/Services'; import { fetchTemplateById } from '@/webPublic/Services';
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { Form } from 'antd'; import { Form } from 'antd';
import { getOneStopConfig } from "@/baseComponent/utils"; import { getOneStopConfig } from '@/webPublic/zyd_public/utils/utils';
// const id = '1234718972352397312'; // const id = '1234718972352397312';
...@@ -18,6 +18,8 @@ function OtherCheckRecord({ form, location: { pathname }, workId }) { ...@@ -18,6 +18,8 @@ function OtherCheckRecord({ form, location: { pathname }, workId }) {
}); });
}, [pathname]); }, [pathname]);
console.log(data);
return !!data && <RenderForm form={form} postData={data} style={{ padding: 0 }} />; return !!data && <RenderForm form={form} postData={data} style={{ padding: 0 }} />;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论