From 1210d5c10991c9f843a1770364a30fbfd3c5a5d8 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 13 一月 2026 13:17:45 +0800
Subject: [PATCH] 1.外购下单:标签打印功能调整 2.人员:培训计划导入导出添加【培训大类】字段 3.业务管理:报检新增【物料属性】字段选择,其余页面添加【物料属性】查询条件以及数据回显 4.标准库:布局优化,左侧选择树支持横向拖拽动态调整宽度

---
 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