From 3762750968c35adb8ac4a4d8bd31d97e6bf59a06 Mon Sep 17 00:00:00 2001 From: Wawilski Date: Mon, 18 Mar 2024 17:34:35 +0100 Subject: [PATCH] Tempo --- frontend/src/App.vue | 5 ++--- frontend/src/Apps/Profil.vue | 6 ++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index b74d1b5..7d79e82 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -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")) diff --git a/frontend/src/Apps/Profil.vue b/frontend/src/Apps/Profil.vue index bf24db2..093e2cc 100644 --- a/frontend/src/Apps/Profil.vue +++ b/frontend/src/Apps/Profil.vue @@ -56,8 +56,10 @@ } async function unRegister(){ - await deleteUser(user.regNo); - + disconnect(); + setTimeout(() => { + window.location.href="#/home"; + }, "500"); }