oauthLogin.vue 272 B

123456789101112131415161718
  1. <template>
  2. </template>
  3. <script>
  4. import { setToken } from '@/utils/auth'
  5. export default {
  6. created() {
  7. const {token} = this.$route.query;
  8. setToken(token);
  9. this.$router.push({ path: this.redirect || "/" }).catch(() => {});
  10. },
  11. }
  12. </script>
  13. <style>
  14. </style>