From 64b11990eb44dea4740f57c6c35026de011c8a35 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期一, 27 五月 2024 17:24:26 +0800 Subject: [PATCH] 修改了光纤配置的样式和函数 --- src/util/date.js | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/util/date.js b/src/util/date.js index 427486b..03629d0 100644 --- a/src/util/date.js +++ b/src/util/date.js @@ -1,8 +1,7 @@ /** * 鑾峰彇骞存湀鏃� */ -export function getYearAndMonthAndDays() { - const date = new Date() +export function getYearAndMonthAndDays(date=new Date()) { let year = date.getFullYear() let month = date.getMonth() + 1 if (month < 10) { -- Gitblit v1.9.3