Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead...

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: "visible"

通过props传递给子组件的visible,不能在子组件内部修改props中的visible值。

//子  
this.$emit('submit');
 
 
//父
 

    <PlatformDialog
      :visible.sync="dialogVisible"
      v-on:submit="close_dialogVisible"
    ></PlatformDialog>
 
   close_dialogVisible() {
      this.dialogVisible = false;
      this.getList();
    },
原文地址:https://www.cnblogs.com/FACESCORE/p/13673588.html