Sfoglia il codice sorgente

代理登录页面修改。

yangc 8 anni fa
parent
commit
ad49ed2657
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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)
         }