| | |
| | | <template> |
| | | |
| | | |
| | | </template> |
| | | |
| | | |
| | | <script> |
| | | import {ssoLogin} from "@/api/system/user.js" |
| | | import {mapGetters} from "vuex"; |
| | | import {setStore} from "@/util/store"; |
| | | |
| | | |
| | | export default { |
| | | name: "sso", |
| | | data() { |
| | |
| | | created() { |
| | | this.onLoad() |
| | | }, |
| | | |
| | | |
| | | methods: { |
| | | onLoad() { |
| | | this.PathString=this.$route.query.empCode; |
| | | //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> |