From ec3add985f600fe56a7232484bbe89a11b73c23b Mon Sep 17 00:00:00 2001
From: wanghong <309858992@qq.com>
Date: 星期四, 21 十二月 2023 12:25:50 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
Source/UBCS-WEB/src/page/login/sso.vue | 41 ++++++++++++++++++++++-------------------
1 files changed, 22 insertions(+), 19 deletions(-)
diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue
index 3565fc3..54c3430 100644
--- a/Source/UBCS-WEB/src/page/login/sso.vue
+++ b/Source/UBCS-WEB/src/page/login/sso.vue
@@ -1,38 +1,41 @@
<template>
-
+
</template>
-
+
<script>
-import {oaSsos} from "@/api/system/user.js"
+import {ssoLogin} from "@/api/system/user.js"
import {mapGetters} from "vuex";
import {setStore} from "@/util/store";
-
+
export default {
name: "sso",
data() {
- return {}
+ return {
+ PathString:'',
+ }
},
- computed: {},
+ computed: {
+ ...mapGetters(["tagWel"])
+ },
created() {
this.onLoad()
},
+
methods: {
onLoad() {
- const loading = this.$loading({
- lock: true,
- text: 'Loading',
- spinner: 'el-icon-loading',
- background: 'rgba(0, 0, 0, 0.7)'
- });
- setTimeout(() => {
- loading.close();
- }, 2000);
-
+ //URL浼犻�掑弬鏁版椂 浼氬皢瀛楃涓蹭腑鐨� %2B 涔熷氨鏄�+鍙疯浆鎹负绌烘牸銆�
+ this.PathString = decodeURIComponent(this.$route.query.empCode.replace(/\s/g, '+'));
+ //console.log(this.$route);
+ //console.log(this.PathString);
+ this.$store.dispatch("LoginBySso", { PathString: this.PathString }).then((res) => {
+ console.log('res', res)
+ this.$router.push({ path: this.tagWel.value });
+ })
}
}
}
</script>
-
+
<style scoped>
-
-</style>
+
+</style>
\ No newline at end of file
--
Gitblit v1.9.3