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

@ -171,10 +171,9 @@ async function handleView(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>
@ -240,6 +239,7 @@ async function handleView(row: Api.Workflow.Task) {
/>
<component
:is="dynamicComponent"
v-if="dynamicComponent"
:visible="viewVisible"
operate-type="detail"
:business-id="businessId"