From 4ee46819c1a86e0ede3da7066f7b0e610c893c3f Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期五, 17 五月 2024 11:50:38 +0800
Subject: [PATCH] !117 修复登录失效,重新登录丢失参数问题 Merge pull request !117 from 爱宇阳/dev

---
 src/views/login.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/login.vue b/src/views/login.vue
index a92f399..3616d09 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -34,6 +34,9 @@
         <el-button circle title="MaxKey鐧诲綍" @click="doSocialLogin('maxkey')">
           <svg-icon icon-class="maxkey" />
         </el-button>
+        <el-button circle title="TopIam鐧诲綍" @click="doSocialLogin('topiam')">
+          <svg-icon icon-class="topiam" />
+        </el-button>
         <el-button circle title="Gitee鐧诲綍" @click="doSocialLogin('gitee')">
           <svg-icon icon-class="gitee" />
         </el-button>
@@ -53,7 +56,7 @@
     </el-form>
     <!--  搴曢儴  -->
     <div class="el-login-footer">
-      <span>Copyright 漏 2018-2023 鐤媯鐨勭嫯瀛怢i All Rights Reserved.</span>
+      <span>Copyright 漏 2018-2024 鐤媯鐨勭嫯瀛怢i All Rights Reserved.</span>
     </div>
   </div>
 </template>
@@ -127,7 +130,8 @@
       // 璋冪敤action鐨勭櫥褰曟柟娉�
       const [err] = await to(userStore.login(loginForm.value));
       if (!err) {
-        await router.push({ path: redirect.value || '/' });
+        const redirectUrl = redirect.value || '/';
+        await router.push(redirectUrl);
         loading.value = false;
       } else {
         loading.value = false;

--
Gitblit v1.9.3