Nearly finish
This commit is contained in:
@ -12,8 +12,10 @@ window.onhashchange = function() {
|
||||
prevURL = currentURL;
|
||||
currentURL = window.location.hash;
|
||||
}
|
||||
const Logged = ref(isLogged());
|
||||
|
||||
window.addEventListener('hashchange', () => {
|
||||
if(location.hash === "#/home" && prevURL === "#/login"){
|
||||
if((location.hash === "#/home" && prevURL === "#/login") || location.hash === "#/home" && prevURL === "#/profil" && !Logged)){
|
||||
window.location.reload();
|
||||
}
|
||||
})
|
||||
@ -24,7 +26,6 @@ window.addEventListener('hashchange', () => {
|
||||
const login=ref(i18n("app.login"))
|
||||
const active=ref(false)
|
||||
|
||||
const Logged = ref(isLogged());
|
||||
|
||||
const apps = ref([])
|
||||
appList().then(e => apps.value = e)
|
||||
|
Reference in New Issue
Block a user