Tempo
This commit is contained in:
parent
25c5c1b018
commit
3762750968
@ -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"))
|
||||
|
@ -56,8 +56,10 @@
|
||||
}
|
||||
|
||||
async function unRegister(){
|
||||
await deleteUser(user.regNo);
|
||||
|
||||
disconnect();
|
||||
setTimeout(() => {
|
||||
window.location.href="#/home";
|
||||
}, "500");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user