From 76dd321ff60149f46b0f0d4591c611870a8166ec Mon Sep 17 00:00:00 2001 From: fofolee Date: Fri, 22 Apr 2022 18:15:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=8C=E5=85=A8=E9=80=80?= =?UTF-8?q?=E5=87=BA=E6=8F=92=E4=BB=B6=E6=97=B6=E6=97=A0=E6=B3=95=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E5=8E=86=E5=8F=B2=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 1 + src/components/CommandEditor.vue | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 28f9bcc..d20e878 100644 --- a/src/App.vue +++ b/src/App.vue @@ -91,6 +91,7 @@ export default defineComponent({ _.cloneDeep(this.profile), this.utools.DBPRE.CFG + "preferences" ); + this.$refs.view.$refs?.commandEditor?.saveCodeHistory() this.$router.push("/"); }, runCronTask(featureCode, cronExp) { diff --git a/src/components/CommandEditor.vue b/src/components/CommandEditor.vue index 0ec9d59..c83eeed 100644 --- a/src/components/CommandEditor.vue +++ b/src/components/CommandEditor.vue @@ -283,9 +283,6 @@ export default { mounted() { this.init(); }, - beforeUnmount() { - this.saveCodeHistory(); - }, computed: { configurationPage() { return this.$root.$refs.view;