Small question about vue and datepicker

Haven't blogged in years. Nothing to do today.

 

Recently, the company's project uses vue to bind data, saving a lot of development time.

 

The point of today is that there are two date input boxes, a start date and an end date, using the datepicker control. 

 

It is no problem to use vue binding, but there is a need to click the perpetual button, and the end date will become 9999-12-31. Naturally, you can set data.endTime = "9999-12-31" in js.

 

The problem is, after setting, the start date is automatically cleared.

 

Test if the manual input time will not be cleared, if you have encountered similar problems, please leave a message

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326530449&siteId=291194637