From a2ddd3bec584b6eb91ab8845353fdb40c9b37ebe Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期一, 02 九月 2024 17:22:17 +0800
Subject: [PATCH] 初步完成

---
 src/common/utils/util.js |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/common/utils/util.js b/src/common/utils/util.js
index e323207..0c7407c 100644
--- a/src/common/utils/util.js
+++ b/src/common/utils/util.js
@@ -138,16 +138,15 @@
 			return '-'
 		}
 		let date = new Date(dat)
-		console.log(date, dat, type);
 		const year = date.getFullYear();
 		const month = (date.getMonth() + 1).toString().padStart(2, '0');
 		const day = date.getDate().toString().padStart(2, '0');
 		const hours = date.getHours().toString().padStart(2, '0');
 		const minutes = date.getMinutes().toString().padStart(2, '0');
 		if (type) {
-			return `${year}-${month}-${day} ${hours}:${minutes}`;
+			return `${year}/${month}/${day} ${hours}:${minutes}`;
 		}
-		return `${year}-${month}-${day}`;
+		return `${year}/${month}/${day}`;
 	},
 	/**
 	 * 鍊掕鏃�
@@ -768,7 +767,9 @@
 			}, reject)
 			// #endif
 		})
+	},
+	roundToTwo(num){
+		return Math.round((num + Number.EPSILON) * 100) / 100;
 	}
-	
 
 }

--
Gitblit v1.9.1