0π
β
The problem is that the value passed as query in the router push is a string, not a boolean, so it always evaluates to true. To fix this, we have to parse the string:
recibeParametros() {
this.alumnoIncoming = (this.$route.query.alumnoIncoming === "true");
},
Source:stackexchange.com