From 780733a1b426a927140619857d732fb472d5cf38 Mon Sep 17 00:00:00 2001 From: "Thang Q. Nguyen" Date: Wed, 19 Apr 2023 14:27:18 +0700 Subject: Fix logout button not work on Safari After logged on via Safari web browser, click -> Log out button does not take effect until clicking on other tab. The current page still works normally. For example, in Virtual Media page, after clicking on the Log out button, nothing happens and we can still mount ISO file. The issue does not happen on Chrome or Firefox. Fix the issue by changing router.go() to router.push(). Reference: https://github.com/vuejs/vue-router/issues/2554 https://codewithandrea.com/articles/flutter-navigation-gorouter-go-vs-push/ Tested: 1. Check if the issue does not happen on Safari anymore. 2. Check if no issue with Google Chrome and Mozilla Firefox. Change-Id: I2ae35dad2dec6b19c3cb9d7f8d577b6077ac8d9c Signed-off-by: Thang Q. Nguyen Signed-off-by: HuyLe --- src/store/modules/Authentication/AuthenticanStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/Authentication/AuthenticanStore.js b/src/store/modules/Authentication/AuthenticanStore.js index 02d6e637..a6de8405 100644 --- a/src/store/modules/Authentication/AuthenticanStore.js +++ b/src/store/modules/Authentication/AuthenticanStore.js @@ -55,7 +55,7 @@ const AuthenticationStore = { commit('setConsoleWindow', false); commit('logout'); }) - .then(() => router.go('/login')) + .then(() => router.push('/login')) .catch((error) => console.log(error)); }, getUserInfo(_, username) { -- cgit v1.2.3