n20-common-lib 3.3.27 → 3.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -73,8 +73,9 @@ let shortcuts_1 = [
|
|
|
73
73
|
text: $lc('最近一周'),
|
|
74
74
|
onClick(picker) {
|
|
75
75
|
const end = new Date()
|
|
76
|
-
const start = new Date()
|
|
77
|
-
|
|
76
|
+
const start = new Date(end.getTime())
|
|
77
|
+
// 最近一周包含今天,按自然日回退 6 天,避免首尾合计 8 天。
|
|
78
|
+
start.setDate(start.getDate() - 6)
|
|
78
79
|
picker.$emit('pick', [start, end])
|
|
79
80
|
}
|
|
80
81
|
},
|