From d5ac02d836e88e206c717d6d4e12e9a281fe7e40 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 21 九月 2023 16:26:59 +0800
Subject: [PATCH] 本地提交

---
 Source/UBCS-WEB/src/page/login/index.vue |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/page/login/index.vue b/Source/UBCS-WEB/src/page/login/index.vue
index 0e0b68e..88a742a 100644
--- a/Source/UBCS-WEB/src/page/login/index.vue
+++ b/Source/UBCS-WEB/src/page/login/index.vue
@@ -22,10 +22,11 @@
           <userLogin v-if="activeName==='user'"></userLogin>
           <thirdLogin v-else-if="activeName==='third'"></thirdLogin>
           <div class="login-menu">
-            <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a>
+            <!-- <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> -->
             <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>-->
-            <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a>
-            <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a>
+            <!-- <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> -->
+            <!-- <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> -->
+            <a href="#" @click="openAnotherProject">鎵撳紑鍙︿竴涓」鐩�</a>
           </div>
         </div>
 
@@ -121,7 +122,17 @@
             loading.close();
           });
         }
-      }
+      },
+
+      openAnotherProject() {
+        const headers = {
+          'headerName': 'headerValue'
+        };
+        const queryString = Object.keys(headers).map(key => key + '=' + headers[key]).join('&');
+        const url = 'http://localhost:38000/#/sso?' + queryString;
+        window.open(url);
+    }
+
     }
   };
 </script>

--
Gitblit v1.9.3