antd 报错 Cannot read property 'filter' of undefined

Every time I update it, I get an inexplicable error

 

 At first, I thought it was a problem with my custom component. Later, I found that the original component of antd entered a value (that is, changed) after a hot update, and it also reported an error.

Solution:

  mounted () {
    this.form.resetFields()
  },

Reset the form every time it is mounted, it can be solved

Guess you like

Origin www.cnblogs.com/mankii/p/12690912.html