redjrectLogin.vue
828 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 && this.$route.query.uid) {
setToken(decodeURI(this.$route.query.token));
setUid(decodeURI(this.$route.query.uid));
this.$router.push({ name: "declarationInput" });
this.loading = false;
// this.$router.push({ path: '/login',query:{changePasswordType:this.$route.query.changePasswordType,loginname:this.$route.query.loginname} })
} else {
this.$router.push({ path: "/login" });
this.loading = false;
}
},
methods: {},
};
</script>
<style lang="scss" scoped></style>