修复在文件编辑时一直按撤销会导致文件内容变空白
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user