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

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),
this.utools.DBPRE.CFG + "preferences"
);
this.$refs.view.$refs?.commandEditor?.saveCodeHistory()
this.$router.push("/");
},
runCronTask(featureCode, cronExp) {

View File

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