diff --git a/src/components/DashboardNav.vue b/src/components/DashboardNav.vue index dfbbd6e..e941d5e 100644 --- a/src/components/DashboardNav.vue +++ b/src/components/DashboardNav.vue @@ -17,7 +17,7 @@ }, methods: { logout() { - const res = fetch(`${this.API_URL}/logout`, { + fetch(`${this.API_URL}/logout`, { method: 'POST', credentials: 'include', headers: { @@ -29,10 +29,6 @@ status: response.status, })).then(res => res) ); - - // if (res.status != 200) // do something - - if (res.data.success) this.$router.push('/'); } } } diff --git a/src/components/LoginComp.vue b/src/components/LoginComp.vue index 2298d76..9797453 100644 --- a/src/components/LoginComp.vue +++ b/src/components/LoginComp.vue @@ -4,6 +4,7 @@ -->