From 82541a55189fc3e611391ba5ff4342dbe57598dd Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期三, 22 十一月 2023 14:39:55 +0800 Subject: [PATCH] 1.用import异常图标 2.修改飞行巡检的时间格式 3.修改了部分网络请求为api函数形式 --- 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