From 0d86c19b122011dc528c624597b0952660d69aba Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期日, 26 六月 2022 09:32:53 +0800
Subject: [PATCH] 1.优化动态路由
---
src/utils/global.js | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/utils/global.js b/src/utils/global.js
index f636c90..044a6b0 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -6,10 +6,11 @@
// 澶勭悊琛ㄥご鍗曞厓鏍兼牱寮�
export function headerCellStyle() {
const option = {
- background: '#eee', padding: '5px 0'
+ background: '#eee', padding: '0'
}
return option
}
+
// 澶勭悊琛ㄦ牸鍗曞厓鏍兼牱寮�
export function cellStyle() {
const option = {
@@ -17,3 +18,11 @@
}
return option
}
+
+// 鏃堕棿澶勭悊鍑芥暟
+export function handleDatatime(value) {
+ const data = new Date(value)
+ const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
+ const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate()
+ return data.getFullYear() + '-' + month + '-' + date
+}
--
Gitblit v1.9.3