VUE+ElementUI中cascader级联选择器组件在再次点击新增时数据回显上次的值

原来的级联选择为


        
        
        
      

 

@closed设置回调函数

el-dialog是弹出层,意思是在关闭模态框(点击新增按钮出现新增模态框)后设置级联选择器重置

methods: {
    dialogClose(){
      this.dataForm.catelogPath=[];
    },
}

如上,在method中设置回调内容将级联选择器的v-model设置为【】

你可能感兴趣的:(vue,elementUI)