diff --git a/src/views/layout/components/AppHeader.vue b/src/views/layout/components/AppHeader.vue index 3c2b7d1..1ad01f4 100644 --- a/src/views/layout/components/AppHeader.vue +++ b/src/views/layout/components/AppHeader.vue @@ -52,10 +52,19 @@ this.$store.dispatch('ToggleSideBar') }, logout() { + debugger this.$store.dispatch('LogOut').then(() => { // location.reload() // 为了重新实例化vue-router对象 避免bug // location // 为了重新实例化vue-router对象 避免bug - this.$router.replace('/') + const HOST = process.env.HOST + alert(HOST) + alert(process.env.BASE_API) + const BASE_API = process.env.BASE_API + if (BASE_API === 'http://10.18.0.23:8083/callcenter/api') { + window.location.href = 'http://10.18.0.50:8086/platform-sso-server/logout' + } else { + this.$router.replace('/') + } }) }, resetPwd() {