1
0
forked from PGL/Clyde
This commit is contained in:
Wawilski 2024-03-18 17:34:35 +01:00
parent 25c5c1b018
commit 3762750968
2 changed files with 6 additions and 5 deletions

View File

@ -15,11 +15,10 @@ window.onhashchange = function() {
const Logged = ref(isLogged());
window.addEventListener('hashchange', () => {
if((location.hash === "#/home" && prevURL === "#/login") || location.hash === "#/home" && prevURL === "#/profil" && !Logged)){
if((location.hash === "#/home" && prevURL === "#/login") || (location.hash === "#/home" && prevURL === "#/profil")){
window.location.reload();
}
})
});
const home=ref(i18n("app.home"))
const notifications=ref(i18n("app.notifications"))
const settings=ref(i18n("app.settings"))

View File

@ -56,8 +56,10 @@
}
async function unRegister(){
await deleteUser(user.regNo);
disconnect();
setTimeout(() => {
window.location.href="#/home";
}, "500");
}