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 | 57 +++++++++++++--------------------------------------------
1 files changed, 13 insertions(+), 44 deletions(-)
diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue
index 5521ac4..26e9510 100644
--- a/Source/UBCS-WEB/src/page/login/sso.vue
+++ b/Source/UBCS-WEB/src/page/login/sso.vue
@@ -1,9 +1,9 @@
<template>
- <p>娴嬭瘯</p>
+
</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";
@@ -11,55 +11,24 @@
name: "sso",
data() {
return {
- loginForm:{
- //绉熸埛ID
- tenantId: "",
- //閮ㄩ棬ID
- deptId: "",
- //瑙掕壊ID
- roleId: "",
- //鐢ㄦ埛鍚�
- username: "",
- //瀵嗙爜
- password: "",
- selectInput: '',
- //涓嬫媺input鏁版嵁
- value: '绠$悊缁�',
- //涓嬫媺鑿滃崟
- region: [],
- //璐﹀彿绫诲瀷
- type: "account",
- //楠岃瘉鐮佺殑绱㈠紩
- key: "",
- //棰勫姞杞界櫧鑹茶儗鏅�
- image: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
-
- },
+ PathString:'',
}
},
computed: {
- ...mapGetters(["tagWel", "userInfo"])
+ ...mapGetters(["tagWel"])
},
created() {
-
+ this.onLoad()
},
+
methods: {
- // Onload() {
- // let name = 'pwdfree'
- // oaSsos(name).then(res=>{
- // console.log(res)
- // if(res.status === 200){
- // // this.loginForm.tenantId=res.data.tenant_id;
- // // this.loginForm.username=res.data.user_name;
- // this.$store.dispatch("LoginBySso").then((res) => {
- // console.log('res',res)
- // this.$router.push({path: this.tagWel.value});
- // })
- // // console.log(this.tagWel)
- // // this.$router.push({path: this.tagWel.value});
- // }
- // })
- // }
+ onLoad() {
+ 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 });
+ })
+ }
}
}
</script>
--
Gitblit v1.10.0