From 093388d51f56e95d155f204971d49fe303b76408 Mon Sep 17 00:00:00 2001
From: longyvfengyun <496960745@qq.com>
Date: 星期三, 06 九月 2023 17:24:24 +0800
Subject: [PATCH] 门禁历史记录

---
 src/main.js |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git a/src/main.js b/src/main.js
index 214d721..da4123f 100644
--- a/src/main.js
+++ b/src/main.js
@@ -5,6 +5,8 @@
 import ElementPlus from "element-plus";
 import "element-plus/dist/index.css";
 import * as ElementPlusIconsVue from '@element-plus/icons-vue'
+import zhCn from "element-plus/es/locale/lang/zh-cn";
+
 
 import { createPinia } from 'pinia'
 
@@ -24,7 +26,30 @@
   return hold;
 };
 
-app.use(ElementPlus);
+//鏍煎紡鍖栨椂闂�
+Date.prototype.format = function (format) {
+  var o = {
+    "M+": this.getMonth() + 1, //month
+    "d+": this.getDate(), //day
+    "h+": this.getHours(), //hour
+    "m+": this.getMinutes(), //minute
+    "s+": this.getSeconds(), //second
+    "q+": Math.floor((this.getMonth() + 3) / 3), //quarter
+    "S": this.getMilliseconds() //millisecond
+  };
+  if (/(y+)/.test(format)) format = format.replace(RegExp.$1,
+    (this.getFullYear() + "").substr(4 - RegExp.$1.length));
+  for (var k in o)
+    if (new RegExp("(" + k + ")").test(format))
+      format = format.replace(RegExp.$1,
+        RegExp.$1.length == 1 ? o[k] :
+          ("00" + o[k]).substr(("" + o[k]).length));
+  return format;
+};
+
+app.use(ElementPlus, {
+  locale: zhCn
+});
 app.use(router);
 app.use(pinia);
 

--
Gitblit v1.9.1