This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a3a8de  usermenu: Forgetting path when manually logging out (#716)
8a3a8de is described below

commit 8a3a8dec128636709d6d505b43a7bda97ee8c2ab
Author: davidjumani <[email protected]>
AuthorDate: Fri Sep 18 14:31:30 2020 +0530

    usermenu: Forgetting path when manually logging out (#716)
    
    Fixes #704
    
    Co-authored-by: Rohit Yadav <[email protected]>
---
 src/components/header/UserMenu.vue | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/header/UserMenu.vue 
b/src/components/header/UserMenu.vue
index b30110a..0104214 100644
--- a/src/components/header/UserMenu.vue
+++ b/src/components/header/UserMenu.vue
@@ -66,10 +66,10 @@ export default {
     ...mapGetters(['nickname', 'avatar']),
     handleLogout () {
       return this.Logout({}).then(() => {
-        window.location.reload()
+        this.$router.push('/user/login')
       }).catch(err => {
         this.$message.error({
-          title: '错误',
+          title: 'Failed to Logout',
           description: err.message
         })
       })

Reply via email to