<divclass="modal-body"><divv-if="comments.length >0"><divclass="media"v-for="comment in comments"><divclass="media-left"><ahref="#"><imgclass="media-object":src="comment.user.avatar"></a></div>
发布评论后 提示这个错误 时什么问题?
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “count”
found in
—> at /Users/shiwuhao/Documents/code/myCode/zhihu/resources/assets/js/components/Comments.vue
发布评论后 提示这个错误 时什么问题?
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “count”
found in
—> at /Users/shiwuhao/Documents/code/myCode/zhihu/resources/assets/js/components/Comments.vue
我粘贴的内容 为什么会丢掉一部分
[Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “count”
评论后 提示这个错误
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop’s value. Prop being mutated: “count”