|
@@ -22,13 +22,10 @@ export default {
|
|
});
|
|
});
|
|
let token = this.$route.query.token;
|
|
let token = this.$route.query.token;
|
|
let user = jwt.decode(token);
|
|
let user = jwt.decode(token);
|
|
- console.log(user);
|
|
|
|
localStorage.setItem('user', JSON.stringify(user));
|
|
localStorage.setItem('user', JSON.stringify(user));
|
|
this.$toast.clear();
|
|
this.$toast.clear();
|
|
- if (this.redirect_uri) {
|
|
|
|
- console.log(this.redirect_uri);
|
|
|
|
- // this.$router.push(this.redirect_uri);
|
|
|
|
- } else if (!this.is_dev) this.toIndex();
|
|
|
|
|
|
+ if (this.redirect_uri) this.$router.push(this.redirect_uri);
|
|
|
|
+ else if (!this.is_dev) this.toIndex();
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
redirect_uri() {
|
|
redirect_uri() {
|