田源
2023-09-22 e2feb34a33953dc44219c79a3329dfd29142662c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<template>
 
</template>
 
<script>
import {ssoLogin} from "@/api/system/user.js"
import {mapGetters} from "vuex";
import {setStore} from "@/util/store";
 
export default {
  name: "sso",
  data() {
    return {
      PathString:'',
    }
  },
  computed: {
    ...mapGetters(["tagWel"])
  },
  created() {
    this.onLoad()
  },
 
  methods: {
    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>
 
<style scoped>
 
</style>