[Vuejs]-How to pass route params to vuex getter?

1👍

Should’ve thinked about it earlier, converting to int solved the problem:

assetId() {
      return parseInt(this.$route.params.id)
    },
👤Gabor

0👍

Think you need to change the return to this.$store.getters.getAssetById(this.assetId)

👤RBowen

Leave a comment