mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-29 20:32:44 +08:00
修复完全退出插件时无法保存历史的问题
This commit is contained in:
parent
9101892376
commit
76dd321ff6
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user