feat:#4 added persistent storage option

This commit is contained in:
Elmar Kresse
2024-05-20 18:52:51 +02:00
parent 306ca12391
commit 1d6fb156c2
5 changed files with 20 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
import CalendarViewer from "@/components/CalendarViewer.vue";
import DynamicPage from "@/view/DynamicPage.vue";
import { useI18n } from "vue-i18n";
import { ref } from "vue";
import { onMounted, ref } from "vue";
import { extractToken } from "@/helpers/token.ts";
import { useToast } from "primevue/usetoast";
import moduleStore from "@/store/moduleStore.ts";
@@ -41,6 +41,11 @@ function loadCalendar() {
tokenStore().setToken(token.value);
}
onMounted(() => {
if (token.value && token.value !== "") {
loadCalendar();
}
});
</script>