Update utils.js
This commit is contained in:
parent
1131b43cd8
commit
63b2e7dd2d
|
@ -259,7 +259,9 @@ utils.getRequestUrl = async function (item, config) {
|
|||
return config.url
|
||||
}
|
||||
|
||||
utils.getUTCDate = function () {
|
||||
utils.getUTCDate = function (d = null) {
|
||||
if (typeof d === 'string') return dayjs.utc(d).startOf('d')
|
||||
|
||||
return dayjs.utc().startOf('d')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue