题目描述[vuex] unknown action type: getFarmInfo相关代码// 请把代码文本粘贴到下方(请勿用图片代替代码)<div class="p-3 text-center"> <img :src="$utils.getImage(farmInfo.org_images, 80)" alt="" class="account-img">
<h5 class="account-name">{{farmInfo.farm_name}}</h5>
<p class="text-muted" v-show="farmInfo.tax_no">
<small>税务号:{{farmInfo.tax_no}}</small>
</p>
</div>
computed: {
farmInfo() { return this.$store.getters.farmInfo }
},
created() { this.$store.dispatch('getFarmInfo')
},你期待的结果是什么?实际看到的错误信息又是什么?报这种错[vuex] unknown action type: getFarmInfo
添加回答
举报
0/150
提交
取消