fix(store): initialize editor value as empty string

This commit is contained in:
cfngc4594 2025-03-09 10:39:53 +08:00
parent 3863d63dee
commit 5925ea8192

View File

@ -35,7 +35,7 @@ export const useCodeEditorStore = create<CodeEditorState>()(
hydrated: false, hydrated: false,
language: DefaultEditorLanguageConfig.id, language: DefaultEditorLanguageConfig.id,
path: getPath(DefaultEditorLanguageConfig.id), path: getPath(DefaultEditorLanguageConfig.id),
value: "#include<stdio.h>", value: "",
lspConfig: null, lspConfig: null,
isLspEnabled: true, isLspEnabled: true,
editorConfig: DefaultEditorOptionConfig, editorConfig: DefaultEditorOptionConfig,