yangc 8 лет назад
Родитель
Сommit
c2ca26d859
1 измененных файлов с 18 добавлено и 0 удалено
  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>