|
|
@@ -49,8 +49,8 @@ export function parseTime(time, pattern) {
|
|
|
//传入一个时间得到一天的末尾 xxxxxxx 23:59:59
|
|
|
export function parseTimeEnd(time, pattern) {
|
|
|
let res = parseTime(time, pattern);
|
|
|
- if (res.indexOf("00:00:00") !== -1) {
|
|
|
- res = res.replace("00:00:00", "23:59:59");
|
|
|
+ if (res?.indexOf("00:00:00") !== -1) {
|
|
|
+ res = res?.replace("00:00:00", "23:59:59");
|
|
|
}
|
|
|
return res;
|
|
|
}
|