控制台报错:

vue.runtime.esm.js?2b0e:619 [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: "is_show_record"

原因:

  传入的prop,被子组件内部又做了一次修改,然后抛的异常

解决方案:

  提交事件,通过父组件修改,父组件重新渲染时,子组件会被覆盖