fix: fixed some minor issues

This commit is contained in:
meilin.huang
2024-11-28 20:11:16 +08:00
parent d07cd74a8c
commit ebc89e056f
15 changed files with 100 additions and 50 deletions

View File

@@ -196,6 +196,9 @@ watch(
(newValue: any) => {
if (!monacoEditorIns.hasTextFocus()) {
state.languageMode = props.language;
if (newValue == null) {
newValue = '';
}
monacoEditorIns?.setValue(newValue);
}
}