Browse Source

登录代理页面

yangc 8 years ago
parent
commit
c2ca26d859
1 changed files with 18 additions and 0 deletions
  1. 18 0
      pages/auth/login.vue

+ 18 - 0
pages/auth/login.vue

@@ -0,0 +1,18 @@
+<template>
+  <div>
+    <!--登录代理页面-->
+  </div>
+</template>
+<script>
+  export default {
+    name: 'login',
+    layout: 'login',
+    mounted () {
+      this.$http.get('/login/page', {params: {returnUrl: '/'}}).then(response => {
+        if (response.data) {
+          window.location.href = response.data.content + '&baseUrl=' + encodeURIComponent(window.location.protocol + '//' + window.location.host + response.data.baseUrl)
+        }
+      })
+    }
+  }
+</script>