精简 monaco 相关代码

This commit is contained in:
fofolee
2022-04-20 15:20:41 +08:00
parent b33f4b16eb
commit 688b3b09f5
4 changed files with 5 additions and 15 deletions

View File

@@ -576,11 +576,9 @@ export default {
},
editorEvent(event) {
switch (event.type) {
case "close":
this.isCommandEditorShow = false;
return;
case "save":
this.saveCommand(event.data);
this.isCommandEditorShow = false;
default:
return;
}