修复完全退出插件时无法保存历史的问题

This commit is contained in:
fofolee 2022-04-22 18:15:18 +08:00
parent 9101892376
commit 76dd321ff6
2 changed files with 1 additions and 3 deletions

View File

@ -91,6 +91,7 @@ export default defineComponent({
_.cloneDeep(this.profile), _.cloneDeep(this.profile),
this.utools.DBPRE.CFG + "preferences" this.utools.DBPRE.CFG + "preferences"
); );
this.$refs.view.$refs?.commandEditor?.saveCodeHistory()
this.$router.push("/"); this.$router.push("/");
}, },
runCronTask(featureCode, cronExp) { runCronTask(featureCode, cronExp) {

View File

@ -283,9 +283,6 @@ export default {
mounted() { mounted() {
this.init(); this.init();
}, },
beforeUnmount() {
this.saveCodeHistory();
},
computed: { computed: {
configurationPage() { configurationPage() {
return this.$root.$refs.view; return this.$root.$refs.view;