gaoluyang
2025-03-18 16b3368a6a44b380969b58609932c6d0c0e3332b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<template>
  <div></div>
</template>
<script>
export default {
  data() {
    return {
      code: null // 用于存储获取到的 code 参数
    };
  },
  created() {
    this.initLogin();
  },
  methods: {
    initLogin() {
      this.$store.dispatch('LoginBySSO', {code: this.$route.query.code}).then(() => {
        this.$router.push({path: '/'});
      });
    }
  }
};
</script>
<style scoped></style>