[Vue warn]: Computed property tabs was assigned to but it has no setter.
生活随笔
收集整理的这篇文章主要介绍了
[Vue warn]: Computed property tabs was assigned to but it has no setter.
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
为什么80%的码农都做不了架构师?>>>
这种问题一般是tabs这个计算属性没有设置set方法导致该报错,因为在methods方法里面有对tabs赋值的操作。只要添加一个 set方法就可以解决此报错
tabs: {get: function () {return this.$store.state.tabList.tabs},set: function (newValue) {this.$store.state.tabList.tabs = newValue} },转载于:https://my.oschina.net/dawd/blog/1490462
总结
以上是生活随笔为你收集整理的[Vue warn]: Computed property tabs was assigned to but it has no setter.的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: Maven编译时提示:不兼容的类型
- 下一篇: vue.js 2.0 官方文档学习笔记