报错Error in event handler for “el.form.change“: “TypeError: dateObject.getTime is not a function“

时间:2024-04-13 10:54:12

Error in event handler for “el.form.change”: “TypeError: dateObject.getTime is not a function”

调试时报如下错误:Error in event handler for “el.form.change”: “TypeError: dateObject.getTime is not a function”
报错Error in event handler for “el.form.change“: “TypeError: dateObject.getTime is not a function“
vue文件中代码如下报错Error in event handler for “el.form.change“: “TypeError: dateObject.getTime is not a function“验证rules为报错Error in event handler for “el.form.change“: “TypeError: dateObject.getTime is not a function“
解决办法,将上面验证规则type:date改为type:string,解决问题