mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
fix(Calendar): display 'NaN/NaN/NaN' in phone device after select date (#3833)
This commit is contained in:
parent
5a4034d341
commit
6b1f510daa
@ -40,7 +40,7 @@ Page({
|
||||
this.setData({ showCalendar: false });
|
||||
|
||||
this.setData({
|
||||
[`date.${this.data.id}`]: event.detail
|
||||
[`date.${this.data.id}`]: Array.isArray(event.detail) ? event.detail.map(date => date.valueOf()) : event.detail.valueOf()
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user