From 9c1d136e4f5ed9b5bce100147edbb52486da985a Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期五, 08 十二月 2023 13:57:32 +0800 Subject: [PATCH] 对飞行巡检和审核辅助对话框逻辑写成组件 --- src/utils/exception_common_function/index.js | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/utils/exception_common_function/index.js b/src/utils/exception_common_function/index.js index 0311b9b..3e40bbb 100644 --- a/src/utils/exception_common_function/index.js +++ b/src/utils/exception_common_function/index.js @@ -1,5 +1,9 @@ import dayjs from 'dayjs' export default { + + + + /** * description锛氳繑鍥炴椂闂存暟缁勶紝闂撮殧15鍒嗛挓銆� * @param锛� 寮傚父鐨勫紑濮�,寮傚父缁撴潫鏃堕棿 @@ -14,7 +18,7 @@ } time.push(begin); let temp = dayjs(begin).add(15, 'minute').format('YYYY-MM-DD HH:mm:ss'); - while (temp != end) { + while (temp >= end) { time.push(temp); temp = dayjs(temp).add(15, 'minute').format('YYYY-MM-DD HH:mm:ss'); } -- Gitblit v1.9.3