@@ -153,6 +153,7 @@ function start() { | |||||
}).catch(error => { | }).catch(error => { | ||||
console.log("An error occured %O", error) | console.log("An error occured %O", error) | ||||
this.loadingError = "Could not initialize app." | this.loadingError = "Could not initialize app." | ||||
window.location.hash = 'login' | |||||
}) | }) | ||||
} | } | ||||
@@ -3,20 +3,21 @@ | |||||
<section class="inputs centered"> | <section class="inputs centered"> | ||||
<h4>Are you sure you want to log out?</h4> | <h4>Are you sure you want to log out?</h4> | ||||
<button>Logout</button> | |||||
<button @click="logout">Logout</button> | |||||
</section> | </section> | ||||
</div> | </div> | ||||
</template> | </template> | ||||
<script> | <script> | ||||
function ready() { | |||||
function logout() { | |||||
document.cookie= "skouter=" | |||||
window.location.reload() | |||||
} | } | ||||
export default { | export default { | ||||
methods: { | methods: { | ||||
ready | |||||
logout | |||||
} | } | ||||
} | } | ||||
</script> | |||||
</script> |