[Vue warn]: Error in getter for watcher “parsedValue“: “TypeError: dateStr.match is not a function“

[Vue warn]: Error in getter for watcher “parsedValue”: “TypeError: dateStr.match is not a function”

1. It is because the date component of the element ui component of the page reports an error, and the value bound to the component is a Number data type. You can change it to a String data type, for example, as shown below

	this.$refs.searchForm.setValue({
    
    
		year: `${
    
    this.searchForm.year}`,
		day: `${
    
    this.searchForm.day}`,
	});

Guess you like

Origin blog.csdn.net/Smile_666666/article/details/125455555