From 803190f6789371daf42360db8167e6eb5679d03f Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 28 九月 2026 10:21:35 +0800
Subject: [PATCH] fix(time): 统一将日期时间格式修改为仅日期格式
---
src/utils/index.js | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/src/utils/index.js b/src/utils/index.js
index 809593f..0c443c7 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -12,14 +12,7 @@
? "0" + (date.getMonth() + 1)
: date.getMonth() + 1;
var day = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
- var hours = date.getHours() < 10 ? "0" + date.getHours() : date.getHours();
- var minutes =
- date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes();
- var seconds =
- date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
- return (
- year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds
- );
+ return year + "-" + month + "-" + day;
}
/**
--
Gitblit v1.9.3