|
@@ -79,15 +79,14 @@
|
|
|
logout () {
|
|
logout () {
|
|
|
this.$http.get('/logout/crossBefore').then(response => {
|
|
this.$http.get('/logout/crossBefore').then(response => {
|
|
|
if (response.data) {
|
|
if (response.data) {
|
|
|
- window.location.href = response.data.logoutUrl
|
|
|
|
|
|
|
+ window.location.href = response.data.logoutUrl + encodeURIComponent(window.location.host + response.data.baseUrl)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
onLoginClick () {
|
|
onLoginClick () {
|
|
|
this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
|
|
this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
|
|
|
if (response.data) {
|
|
if (response.data) {
|
|
|
- console.log(response.data.content)
|
|
|
|
|
- window.location.href = response.data.content
|
|
|
|
|
|
|
+ window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.host + response.data.baseUrl)
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
// TODO 待Account Center改版
|
|
// TODO 待Account Center改版
|