summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThang Q. Nguyen <thang@os.amperecomputing.com>2023-04-19 10:27:18 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2023-06-02 04:44:12 +0300
commit780733a1b426a927140619857d732fb472d5cf38 (patch)
tree51abd941b12fde316d653d761e531c22257b3f63
parent2dabfc1bb488f84ec00f19a51aba144b7f71e45d (diff)
downloadwebui-vue-780733a1b426a927140619857d732fb472d5cf38.tar.xz
Fix logout button not work on Safari
After logged on via Safari web browser, click <user> -> 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 <thang@os.amperecomputing.com> Signed-off-by: HuyLe <hule@amperecomputing.com>
-rw-r--r--src/store/modules/Authentication/AuthenticanStore.js2
1 files changed, 1 insertions, 1 deletions
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) {