redjrectLogin.vue 750 Bytes
<template>
  <div v-loading="loading"></div>
</template>
<script>
import { removeToken, setToken, setUid } from "@/utils/auth";
export default {
  props: {},
  data() {
    return {
      loading: false,
    };
  },
  mounted() {
    this.loading = true;
    removeToken();
    if (this.$route.query.token) {
      setToken(decodeURI(this.$route.query.token));
      this.$router.push({ name: "WaybillInquiry" });
      this.loading = false;
      // this.$router.push({ path: '/login',query:{changePasswordType:this.$route.query.changePasswordType,loginname:this.$route.query.loginname} })
    } else {
      this.$router.push({ path: "/404" });
      this.loading = false;
    }
  },
  methods: {},
};
</script>

<style lang="scss" scoped></style>