Browse Source

代理登录页面修改。

yangc 8 years ago
parent
commit
ad49ed2657
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pages/auth/login.vue

+ 2 - 1
pages/auth/login.vue

@@ -8,7 +8,8 @@
     name: 'login',
     layout: 'login',
     mounted () {
-      this.$http.get('/login/page', {params: {returnUrl: '/'}}).then(response => {
+      let uri = window.location.protocol + '//' + window.location.host + '/'
+      this.$http.get('/login/page', {params: {returnUrl: uri}}).then(response => {
         if (response.data) {
           window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
         }