修复在文件编辑时一直按撤销会导致文件内容变空白

This commit is contained in:
xintaofei
2026-03-20 23:16:32 +08:00
parent aeddc37655
commit dbf3971134

View File

@@ -1563,6 +1563,11 @@ export function FileWorkspacePanel() {
</div>
)}
<div className="flex-1 min-h-0">
{activeFileTab.loading ? (
<div className="h-full flex items-center justify-center text-xs text-muted-foreground">
{t("loadingEditor")}
</div>
) : (
<MonacoEditor
beforeMount={defineMonacoThemes}
onMount={handleEditorMount}
@@ -1595,6 +1600,7 @@ export function FileWorkspacePanel() {
},
}}
/>
)}
</div>
</div>
</div>