Commit 2489ece8 authored by chenshouchao's avatar chenshouchao

feat: 模板类型变化时重新获取模板列表数据

parent cdef5978
Pipeline #189 failed with stages
......@@ -110,11 +110,12 @@ const AddTemplate = observer((props: IAddTemplateProps) => {
};
useEffect(() => {
setSelectTemplateData([]);
getAddTemplateList({
projectId: projectId as string,
productId: productId as string,
});
}, [getAddTemplateList, projectId, productId]);
}, [templateType, getAddTemplateList, projectId, productId]);
const hiddenBoxArr = useMemo(() => {
const length =
......
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