From 070e45c7b61044e764c2a8adaf092bec1535f3d8 Mon Sep 17 00:00:00 2001 From: Sanskar Soni Date: Tue, 10 Oct 2023 11:00:34 +0530 Subject: [PATCH] Improved: indentation --- src/App.vue | 4 ++-- src/views/Settings.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2d37660c..cc299a54 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,8 +65,8 @@ export default defineComponent({ async unauthorized() { // Mark the user as unauthorised, this will help in not making the logout api call in actions this.store.dispatch("user/logout", { isUserUnauthorised: true }); - const redirectUrl = window.location.origin + '/login' - window.location.href = `${process.env.VUE_APP_LOGIN_URL}?redirectUrl=${redirectUrl}` + const redirectUrl = window.location.origin + '/login'; + window.location.href = `${process.env.VUE_APP_LOGIN_URL}?redirectUrl=${redirectUrl}`; } }, created() { diff --git a/src/views/Settings.vue b/src/views/Settings.vue index 93166e39..10402778 100644 --- a/src/views/Settings.vue +++ b/src/views/Settings.vue @@ -233,8 +233,8 @@ export default defineComponent({ }); await alert.present(); }, - logout () { - this.store.dispatch('user/logout', { isUserUnauthorised: false }).then((redirectionUrl) => { + logout() { + this.store.dispatch('user/logout', { isUserUnauthorised: false }).then((redirectionUrl) => { this.store.dispatch('shipment/clearShipments'); this.store.dispatch('return/clearReturns'); this.store.dispatch("party/resetReceiversDetails");