Commit a1962def authored by chenshouchao's avatar chenshouchao

fix: 解决后端接口修改后添加模板列表页报错的问题

parent a426fddc
......@@ -91,7 +91,7 @@ const AddTemplate = (props: IAddTemplateProps) => {
// 添加工作流模板-获取模板列表
const { run: getAddTemplateList } = useMyRequest(getAddWorkbenchTemplate, {
onSuccess: (result: any) => {
setAddTemplateList(result.data);
setAddTemplateList(result?.data?.content || []);
// setOpenAddTemplate(true);
},
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment