From ca24afe4b2d24bf59d5ce402bc85e4b363fc7b72 Mon Sep 17 00:00:00 2001 From: fofolee Date: Sat, 15 Feb 2025 23:19:19 +0800 Subject: [PATCH] =?UTF-8?q?runComposer=E8=87=AA=E5=8A=A8=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E7=9A=84=E5=91=BD=E4=BB=A4=E4=B9=9F=E8=BF=9B=E8=A1=8C=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 7 +++- src/components/ComposerEditor.vue | 60 +++---------------------------- src/js/commandManager.js | 55 ++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 57 deletions(-) diff --git a/src/App.vue b/src/App.vue index 288e478..947306e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -132,10 +132,15 @@ export default defineComponent({ // 退出时保存RunCode和RunComposer的命令 if (!["code", "composer"].includes(this.$route.name)) return; - const currentCommand = window.lodashM.cloneDeep( + let currentCommand = window.lodashM.cloneDeep( this.commandManager.state.currentCommand ); + if (this.$route.name === "composer") { + currentCommand = + this.commandManager.getLitedComposerCommand(currentCommand); + } + dbManager.putDB(currentCommand, `cfg_${this.$route.name}History`); this.$router.push("/"); diff --git a/src/components/ComposerEditor.vue b/src/components/ComposerEditor.vue index e5b46f6..2a4142b 100644 --- a/src/components/ComposerEditor.vue +++ b/src/components/ComposerEditor.vue @@ -13,7 +13,6 @@