fix(projects): 修复动态组件弹窗动画问题

This commit is contained in:
xlsea
2025-07-21 10:54:16 +08:00
parent f138e34ef9
commit 2e02992906
6 changed files with 30 additions and 6 deletions

View File

@ -168,12 +168,16 @@ const businessId = ref<CommonType.IdType>();
const taskId = ref<CommonType.IdType>();
async function handleView(row: Api.Workflow.Task) {
dynamicComponent.value = null;
viewVisible.value = false;
businessId.value = row.businessId;
taskId.value = row.id;
const formPath = row.formPath;
if (!formPath) return;
dynamicComponent.value = await loadDynamicComponent(modules, formPath);
showViewDrawer();
setTimeout(() => {
showViewDrawer();
}, 300);
}
</script>