0👍
greendemiurge was correct. The router was returning a string, so wrapping the id in parseInt() fixed the issues.
computed: {
card() {
var id = this.$route.params.card;
return populateCard(
this.$store.getters.getCard(parseInt(id, 10))
);
}
- [Vuejs]-Axios – unable to set global Authorization header
- [Vuejs]-Vuejs is using a modified event directive without an event handler OK?
Source:stackexchange.com