Parcourir la source

add auto save

tripeur il y a 4 ans
Parent
commit
fdd0343a1d
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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));