tripeur 4 роки тому
батько
коміт
fdd0343a1d
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      src/PlannerApp.vue

+ 3 - 0
src/PlannerApp.vue

@@ -102,6 +102,9 @@ export default defineComponent({
       this.localSave();
     };
   },
+  unmounted() {
+    this.save();
+  },
   methods: {
     localSave() {
       window.localStorage.setItem("activeState", JSON.stringify(this.$store.getters.getJSONState));