make new localstorage function file

This commit is contained in:
Adrian Zürcher
2025-11-15 14:19:45 +01:00
parent 44f355a5ea
commit 7b17cd99fe
8 changed files with 128 additions and 56 deletions

View File

@@ -5,6 +5,7 @@
</template>
<script setup lang="ts">
import { getLocalLastRoute } from 'src/localstorage/localStorage';
import LoginForm from 'src/vueLib/login/LoginForm.vue';
import { useUserStore } from 'src/vueLib/login/userStore';
import { nextTick, onMounted } from 'vue';
@@ -21,7 +22,6 @@ onMounted(() => {
const forwardToPage = async () => {
await nextTick();
const lastRoute = localStorage.getItem('lastRoute') || '/members';
await router.push(lastRoute);
await router.push(getLocalLastRoute());
};
</script>