Explorar el Código

add auto save

tripeur hace 4 años
padre
commit
fdd0343a1d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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));