Having trouble with my Single Page application: every time I refresh the page after rendering the login form, it goes back to the homepage. How can I prevent this and make sure the page stays on the login form even after a refresh?
This is what my homepage looks like:
<template id="" v-if="page.homepage">
<div class="container ">
<h1> Homepage </h1>
</div>
</template>
This is my login form:
<template id="" v-if="page.login">
<div class="container ">
<h1> Login </h1>
</div>
</template>
Here is the method I'm using:
loginButton(){
this.page.homepage = false
this.page.login = true
}
I've been struggling with this issue for quite some time now, any help would be greatly appreciated.