Vue中报错Error in v-on handler: “TypeError: dateObject.getTime is not a function“

  1. Background: Upload the form in the vue2 project, and report Error in v-on handler: "TypeError: dateObject.getTime is not a function"

  1. Analysis: The reason is found to be caused by type:'date' in rules, because it is initialized to string type . The time here will become a string format after reselecting the time in the form.

  1. Solution: delete *type:'date' on date validation in rules ,

Guess you like

Origin blog.csdn.net/lovecoding1/article/details/129267052