Explorar o código

feat: 使用新门户

Jinyao %!s(int64=5) %!d(string=hai) anos
pai
achega
3150dbb760
Modificáronse 3 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      .env
  2. 1 1
      src/components/Menu.vue
  3. 1 1
      src/views/Login.vue

+ 1 - 1
.env

@@ -1,2 +1,2 @@
-VUE_APP_PORTAL_HOST='p.seecoder.cn'
+VUE_APP_PORTAL_HOST='p.seec.seecoder.cn'
 VUE_APP_API_URL = '/api'

+ 1 - 1
src/components/Menu.vue

@@ -175,7 +175,7 @@ export default defineComponent({
     };
 
     const login = () => {
-      window.location = `http://${process.env.VUE_APP_PORTAL_HOST}/api/interaction?scope=openid&client_id=seec-seec&redirect_uri=${
+      window.location = `http://${process.env.VUE_APP_PORTAL_HOST}/interaction?scope=openid&client_id=seec-seec&redirect_uri=${
         encodeURI(`http://${window.location.host}/`)
       }` as unknown as Location;
     };

+ 1 - 1
src/views/Login.vue

@@ -11,7 +11,7 @@ import { defineComponent } from 'vue';
 export default defineComponent({
   methods: {
     async login() {
-      window.location = `http://${process.env.VUE_APP_PORTAL_HOST}/api/interaction?scope=openid&client_id=seec-seec&redirect_uri=${
+      window.location = `http://${process.env.VUE_APP_PORTAL_HOST}/interaction?scope=openid&client_id=seec-seec&redirect_uri=${
         encodeURI(`http://${window.location.host}/`)
       }` as unknown as Location;
     },