diff --git a/src/modeler/PublishConfirm.tsx b/src/modeler/PublishConfirm.tsx index ab5998a..97950b9 100644 --- a/src/modeler/PublishConfirm.tsx +++ b/src/modeler/PublishConfirm.tsx @@ -87,6 +87,11 @@ export function PublishConfirm({ } } + // M3:发布进行中拦截关闭(遮罩点击 / X 按钮),避免中途关窗留下不确定态。 + const guardedClose = () => { + if (!deploying) onClose(); + }; + const key = impact?.processKey || processKeyHint || '(未知)'; const cur = impact?.currentVersion ?? 0; const versionText = !impactLoaded @@ -100,7 +105,7 @@ export function PublishConfirm({ const foot = ( <> -