From fb6e16a425e9ade08dbcca96d6a2f1c9b2f25b1e Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期三, 14 一月 2026 17:51:56 +0800
Subject: [PATCH] fix: 合格率统计调整:铜、铝合并为【导体】统计数据。明细表格字段更改和导出按钮

---
 src/views/thirdpartylogin.vue |   21 +++++++--------------
 1 files changed, 7 insertions(+), 14 deletions(-)

diff --git a/src/views/thirdpartylogin.vue b/src/views/thirdpartylogin.vue
index 692ce99..1fe70ea 100644
--- a/src/views/thirdpartylogin.vue
+++ b/src/views/thirdpartylogin.vue
@@ -5,25 +5,18 @@
 export default {
   data() {
     return {
-      SSO: window.location.hash
-    }
+    };
   },
   created() {
-    this.initLogin()
-    console.log(this.SSO)
+    this.initLogin();
   },
   methods: {
     initLogin() {
-      const code = this.SSO.split('&')[0].split('=')[1]
-      console.log(code)
-
-      if (code) {
-        this.$store.dispatch('LoginBySSO', code).then(() => {
-          this.$router.push({ path: '/' })
-        })
-      }
+      this.$store.dispatch('LoginBySSO', {code: this.$route.query.code}).then(() => {
+        this.$router.push({path: '/'});
+      });
     }
   }
-}
+};
 </script>
-<style scoped></style>
+<style scoped></style>
\ No newline at end of file

--
Gitblit v1.9.3