From 1994756ca5b2e646202daa2c04a72bf2d421f3d8 Mon Sep 17 00:00:00 2001
From: lxp <1928192722@qq.com>
Date: 星期五, 09 八月 2024 17:57:05 +0800
Subject: [PATCH] modified: src/components/do/b1-ins-order/fiberoptic-config-two.vue modified: src/components/do/b1-ins-order/fiberoptic-config.vue modified: src/components/view/b1-inspect-order-plan.vue modified: src/components/view/b1-inspection-order.vue
---
src/util/date.js | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/util/date.js b/src/util/date.js
index 5135a21..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) {
@@ -13,9 +12,9 @@
year = year + '-'
let days = date.getDate()
if (days < 10) {
- days = '0' + days + '-'
+ days = '0' + days
} else {
- days = days + '-'
+ days = days
}
return (year + month + days)
}
--
Gitblit v1.9.3