From 688b3b09f50b673bc51b623ce43120e6ab51ec4d Mon Sep 17 00:00:00 2001 From: fofolee Date: Wed, 20 Apr 2022 15:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=20monaco=20=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommandEditor.vue | 8 -------- src/components/CommandSideBar.vue | 2 +- src/components/MonacoEditor.vue | 6 +++--- src/pages/ConfigurationPage.vue | 4 +--- 4 files changed, 5 insertions(+), 15 deletions(-) diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index 77affad..2e2841f 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -327,13 +327,6 @@ export default { this.matchLanguage(this.quickcommandInfo.customOptions.ext); }); }, - closeEditor() { - this.$refs.editor?.destoryEditor(); - this.$emit("editorEvent", { - type: "close", - data: {}, - }); - }, // 保存 saveCurrentCommand() { let updatedData = this.$refs.sidebar?.SaveMenuData(); @@ -348,7 +341,6 @@ export default { type: "save", data: newQuickcommandInfo, }); - this.closeEditor(); }, // 运行 runCurrentCommand() { diff --git a/src/components/CommandSideBar.vue b/src/components/CommandSideBar.vue index 498f7d9..531631e 100644 --- a/src/components/CommandSideBar.vue +++ b/src/components/CommandSideBar.vue @@ -14,7 +14,7 @@ color="grey" style="margin-right: 29px" icon="arrow_back_ios_new" - @click="$parent.closeEditor" + v-close-popup />