Commit 7c34dec1 by 宋珺琪

修改时间bug

parent a7842ea0
...@@ -107,7 +107,9 @@ export default { ...@@ -107,7 +107,9 @@ export default {
shortcuts: [{ shortcuts: [{
text: '本月', text: '本月',
onClick(picker) { onClick(picker) {
picker.$emit('pick', [new Date(), new Date()]); const end = new Date();
const start = new Date(end.getFullYear(), end.getMonth(), 1);
picker.$emit('pick', [start, end]);
} }
}, { }, {
text: '今年至今', text: '今年至今',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment