Showing
1 changed file
with
9 additions
and
1 deletions
@@ -51,6 +51,14 @@ export default { | @@ -51,6 +51,14 @@ export default { | ||
51 | }, | 51 | }, |
52 | }, | 52 | }, |
53 | { | 53 | { |
54 | + text: '最近6小时', | ||
55 | + value: () => { | ||
56 | + const end = new Date(); | ||
57 | + const start = formatDate(6,'h'); | ||
58 | + return [start, end] | ||
59 | + }, | ||
60 | + }, | ||
61 | + { | ||
54 | text: '最近1天', | 62 | text: '最近1天', |
55 | value: () => { | 63 | value: () => { |
56 | const end = new Date(); | 64 | const end = new Date(); |
@@ -238,7 +246,7 @@ export default { | @@ -238,7 +246,7 @@ export default { | ||
238 | 246 | ||
239 | const oneDay=()=>{ | 247 | const oneDay=()=>{ |
240 | const end = getDateTime(new Date()); | 248 | const end = getDateTime(new Date()); |
241 | - const start = formatDate(1,'d'); | 249 | + const start = formatDate(6,'h'); |
242 | dateValue.value=[start,end] | 250 | dateValue.value=[start,end] |
243 | changeDate(dateValue.value) | 251 | changeDate(dateValue.value) |
244 | } | 252 | } |
-
mentioned in commit a6e37476
-
Please register or login to post a comment