@@ -13,7 +13,7 @@
if (!this.$store.state.option.user.logged) {
this.$http.get('/login/page', {params: {returnUrl: window.location.href}}).then(response => {
if (response.data) {
- window.location.href = response.data.content
+ window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.host + response.data.baseUrl)
}
})
} else {
@@ -79,15 +79,14 @@
logout () {
this.$http.get('/logout/crossBefore').then(response => {
- window.location.href = response.data.logoutUrl
+ window.location.href = response.data.logoutUrl + encodeURIComponent(window.location.host + response.data.baseUrl)
},
onLoginClick () {
- console.log(response.data.content)
// TODO 待Account Center改版
@@ -148,7 +148,7 @@
goLogin: function () {
@@ -111,7 +111,7 @@
@@ -120,7 +120,7 @@
if (url === '1') {
@@ -57,7 +57,7 @@ export default {
if (!this.user.logged) {
@@ -97,7 +97,7 @@
this.$http.get('/login/page').then(response => {
@@ -310,7 +310,7 @@ export default {
@@ -72,7 +72,7 @@
@@ -100,7 +100,7 @@ export default {
@@ -6,7 +6,7 @@ export default function ({ isServer, store, req, redirect }) {
if (!store.state.option.user.logged) {