@@ -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
@@ -57,6 +57,7 @@ export default {
userMenuCommand(cmd) {
// console.log('userMenuCommand ', cmd)
if (cmd == 'logout') {
+ console.log("点击登出l")
frameworkApi.toLogout()
}