From d5c18517bf33ae8eafcf2e34ac11fe11a0bfd761 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 01 四月 2024 17:59:37 +0800
Subject: [PATCH] 修改检验任务
---
src/util/date.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/util/date.js b/src/util/date.js
index 867a406..5135a21 100644
--- a/src/util/date.js
+++ b/src/util/date.js
@@ -12,5 +12,10 @@
}
year = year + '-'
let days = date.getDate()
- return year + month + days
+ if (days < 10) {
+ days = '0' + days + '-'
+ } else {
+ days = days + '-'
+ }
+ return (year + month + days)
}
--
Gitblit v1.9.3