optimize(projects): 优化代码

This commit is contained in:
AN
2025-07-16 14:13:11 +08:00
parent 59a69dd9f0
commit 6c6086f89d

View File

@ -214,10 +214,11 @@ const businessId = ref<CommonType.IdType>();
async function handleView(row: Api.Workflow.TaskOrHisTask) {
businessId.value = row.businessId;
const formPath = row.formPath;
if (formPath) {
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
showViewDrawer();
if (!formPath) {
return;
}
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
showViewDrawer();
}
const taskId = ref<CommonType.IdType>('');