From 7d959062a6caeffac2043a8cfa8cb4c18af8b367 Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期一, 25 九月 2023 17:26:44 +0800
Subject: [PATCH] 关键属性判断接口查询出错bug修改
---
Source/UBCS-WEB/src/page/login/sso.vue | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue
index 3565fc3..26e9510 100644
--- a/Source/UBCS-WEB/src/page/login/sso.vue
+++ b/Source/UBCS-WEB/src/page/login/sso.vue
@@ -3,31 +3,31 @@
</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);
-
+ this.PathString=this.$route.query.empCode;
+ this.$store.dispatch("LoginBySso", { PathString: this.PathString }).then((res) => {
+ console.log('res', res)
+ this.$router.push({ path: this.tagWel.value });
+ })
}
}
}
--
Gitblit v1.10.0