vue 报错:Computed property “marginalContribution“ was assigned to but it has no setter
错误例子:
methods: {
A: function () {
return "hello" + this.name;
},
B: function () {
return this.A;
},
}
以上写法使用vue计算属性computed依赖于另一个computed,该写法会在浏览器控制台报错提示Computed property "A" was assigned to but it has no setter
当存在...
原创
2021-04-15 14:10:24 ·
164 阅读 ·
0 评论