update--当天时间窗调整

qianming 2 years ago
parent 7933d7cd7f
commit 0668e0a8e2

@ -41,8 +41,8 @@ export default {
shortcuts: [{ shortcuts: [{
text: '今天', text: '今天',
onClick(picker) { onClick(picker) {
const end = new Date();
const start = new Date(new Date(new Date().getTime()).setHours(0, 0, 0, 0)); const start = new Date(new Date(new Date().getTime()).setHours(0, 0, 0, 0));
const end = new Date(new Date(new Date().getTime()).setHours(23, 59, 59, 999));;
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ },{

Loading…
Cancel
Save