This is how I wrote it, it feels a bit strange
The official API says this, so how do I assign the value in state to a in data
小伙看你根骨奇佳,潜力无限,来学PHP伐。
Remove a in data() and directly change it to calculated attribute
computed: { a() { return this.$store.state.a; } }
If your a exists in vuex, as in the document, use the calculated attribute this.getA directly without declaring a in data
To modify the value of a, please use mutations to submit to vuex
Remove a in data() and directly change it to calculated attribute
If your a exists in vuex, as in the document, use the calculated attribute this.getA directly without declaring a in data
To modify the value of a, please use mutations to submit to vuex