make new localstorage function file
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user