computed property "selected" was assigned to but it has no setter
项目代码如下:<tabbar v-model="selected"> </tabbar>computed: { ...mapState({ selected: state => state.nav.selected })}出现错误: 原因: 结合vuex和模块v-model中,直接利用mapState就会提示没有setter目前解决方法:<ta
原创
2017-11-06 14:35:22 ·
8798 阅读 ·
0 评论