mirror of https://github.com/apache/cloudstack.git
usermenu: Forgetting path when manually logging out (#716)
Fixes #704 Co-authored-by: Rohit Yadav <rohit.yadav@shapeblue.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
070cbc1d7c
commit
56652c3511
|
|
@ -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
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue