gangkou/ruoyi-ui/src/views/single-sign.vue

26 lines
463 B
Vue
Raw Normal View History

<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>