update
This commit is contained in:
@@ -60,7 +60,9 @@ export default function () {
|
||||
}
|
||||
};
|
||||
|
||||
const now = new Date().getTime();
|
||||
const now = new Date()
|
||||
const [y, m, d] = [now.getFullYear(), now.getMonth(), now.getDate()]
|
||||
const today = new Date(y, m, d, 0, 0, 0, 0).getTime()
|
||||
const headFormFields = [
|
||||
{
|
||||
prop: "material",
|
||||
@@ -96,7 +98,7 @@ export default function () {
|
||||
"start-placeholder": "开始时间",
|
||||
"end-placeholder": "结束时间",
|
||||
},
|
||||
default: { value: [now - 3600 * 24 * 7 * 1000, now] },
|
||||
default: { value: [today - 3600 * 24 * 1000 * 7, today + 3600 * 1000 * 24] },
|
||||
},
|
||||
{
|
||||
button: {
|
||||
|
||||
Reference in New Issue
Block a user