optimize(projects): 优化代码

This commit is contained in:
AN
2025-07-15 22:49:55 +08:00
parent 01d42722f5
commit 59a69dd9f0
7 changed files with 19 additions and 23 deletions

View File

@ -165,10 +165,9 @@ async function handleApproval(row: Api.Workflow.Task) {
businessId.value = row.businessId;
taskId.value = row.id;
const formPath = row.formPath;
if (formPath) {
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
showViewDrawer();
}
if (!formPath) return;
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
showViewDrawer();
}
</script>