diff --git a/src/editor/DesignerPage.tsx b/src/editor/DesignerPage.tsx index eb54cfd..3011d73 100644 --- a/src/editor/DesignerPage.tsx +++ b/src/editor/DesignerPage.tsx @@ -229,12 +229,11 @@ export function DesignerPage() { try { const result = await deleteOverlay(templateId); if (result.status === 0) { - // 重新加载标准层 schema - const { schema: s, layer: l } = await fetchSchemaWithLayer(templateId); - setSchema(s); - setLayer(l); - currentSchemaRef.current = s; toast('success', '已还原标准版'); + // 不做 editor 热切换:amis-editor 对 value 整体替换(空 overlay→完整标准 schema) + // 会在内部 setValue 路径抛异常导致整页白屏(F3-1 期间实锤复现)。 + // 还原后整页重载,editor 以标准层干净重初始化。 + window.setTimeout(() => window.location.reload(), 600); } else { toast('error', '还原失败:' + result.msg); }