From a271e033ffebf9e95c9ee54fac8891814583571f Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期五, 24 六月 2022 17:30:27 +0800
Subject: [PATCH] 1.页面响应式配置2.设备清单页面的开发

---
 src/utils/global.js |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/utils/global.js b/src/utils/global.js
index ae431e0..044a6b0 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -10,6 +10,7 @@
   }
   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