【Vue-bug】[Vue warn]: Computed property "isCheckedAll" was assigned to but it has no setter.
isCheckedAll: function() {
if (this.cartList.length === 0) {
return false;
} else {
return !this.cartList.find(item => !item.checked);
}
},
改正,加入get()、set()
isCheckedAll: {
get: function() {
if (this.cartList.length === 0) {
return false;
} else {
return !this.cartList.find(item => !item.checked);
}
},
set: function() {}
},
注:以上内容仅用于日常学习