[Vuejs]-Vue.js + element-ui form validation rules in dialog

0๐Ÿ‘

    initOperationData (data, operation) {
      this.operationData = JSON.parse(JSON.stringify(data))
      this.operation = operation
      this.operationDialogVisible = true
      this.$nextTick(() => {
        this.$refs['operationData'].clearValidate()
      })
    },

Using clearValidate

Leave a comment