vue.esm.js?efeb:591 [Vue warn]: Avoid mutating a prop directly since the value will be overwritten w

问题: 

vue.esm.js?efeb:591 [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: "isShowDialog"

found in

 

当子组件利用v-modle直接绑定父组件传入的值,然后子组件中再修改父组件的值时会出现如上错误,详细BUG代码如下:

 

子组件:




                    
                    

你可能感兴趣的:(Web前端)