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 @@