Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
Immanuel
/
skouter
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Add logout function
master
Immanuel Onyeka
2 anni fa
parent
9c7ac0a199
commit
2a66cacd6f
2 ha cambiato i file
con
7 aggiunte
e
5 eliminazioni
Visualizzazione separata
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
components/app.vue
+6
-5
components/sign-out.vue
+ 1
- 0
components/app.vue
Vedi File
@@ -153,6 +153,7 @@ function start() {
}).catch(error => {
console.log("An error occured %O", error)
this.loadingError = "Could not initialize app."
window.location.hash = 'login'
})
}
+ 6
- 5
components/sign-out.vue
Vedi File
@@ -3,20 +3,21 @@
<section class="inputs centered">
<h4>Are you sure you want to log out?</h4>
<button>Logout</button>
<button
@click="logout"
>Logout</button>
</section>
</div>
</template>
<script>
function ready() {
function logout() {
document.cookie= "skouter="
window.location.reload()
}
export default {
methods: {
ready
logout
}
}
</script>
</script>
Write
Preview
Loading…
Annulla
Salva