From baf77b7ac6be90c1dfc8d9536ae194f350f7cc7c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 十月 2026 15:22:37 +0800
Subject: [PATCH] 列表时间统一只展示年月日,库存最近更新时间用创建时间兜底
---
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