|
@@ -100,7 +100,11 @@ export default {
|
|
|
|
|
|
toLogout() {
|
|
|
// TODO
|
|
|
- router.push('/login')
|
|
|
+ router.push('/auth')
|
|
|
+ store.commit('setSsoToken', null)
|
|
|
+ let ssoServer = process.env.SSO_SERVER
|
|
|
+ let redirectUrl = window.location.protocol + '//' + window.location.host + '/'
|
|
|
+ window.location.href = `${ssoServer}/logout?redirectUrl=${redirectUrl}`
|
|
|
},
|
|
|
|
|
|
toLoginPage: toLogin
|