<template>
  <div></div>
</template>
​
<script>
export default {
  name: "SingleSign",
  data() {
    return {
      redirect: undefined
    };
  },
  created() {
    this.singleSign();
  },
  methods: {
    singleSign() {
      const { userName, password = "123456" } = this.$route.query;
      this.$store.dispatch("SingleSign", { userName, password }).finally(() => {
        this.$router.push({ path: "/" }).catch(()=>{});
      });
    },
  }
};
</script>
