[Vue warn]: Avoid mutating a prop directly since the value will be overwritt
2018-02-26 11:24
561 查看
父组件向子组件传入一个值,在子组件中想要改变这个值,不是直接在子组件中直接修改,而是让应该这个组件提交个事件给父组件,可以用$emit,向父组件传递你改的值,在父组件中修改传递变量,
相关文章推荐
- 报错 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten whenever the paren
- [Vue warn]: Avoid mutating a prop directly since the value will be overwritten
- Vue avoid mutating a prop directly since the value will be overwritten
- Vue:Avoid mutating a prop directly since the value will be overwritten ...警告解决方法
- - Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
- [Vs Code]Vue工具错误(The Vue Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.)
- The game will be over
- How to avoid the error "The file 'xyz.mdf' cannot be overwritten. when deploying
- It is said that wars in the 21st century will be fought over water. Do you agree? What do you think can be done now to alleviate
- Type of the default value for 'data' prop must be a function
- Type of the default value for 'data' prop must be a function的解决方法
- the selected package might contain files that will be overwritten by artifact generation的解决方法
- 关于iview中[Vue warn]: Avoid using non-primitive value as key, use string/number value instead.影响性能的问题
- [mysql] mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in
- 未来IT行业将缩减到三类职业(The future of IT will be reduced to three kinds of jobs)
- The break point will not currently be hit
- 在Windows Vista上安装Arcgis9.3出现the Web Applications featurewill not be available
- xxx is not in the sudoers file. This incident will be reported
- The first exam will be on Sep 29th.
- The final local variable xxx cannot be assigned, since it is defined in an enclosing type