From 55d42cc7a2e6e21e1f8e06ca80089fe911914ac9 Mon Sep 17 00:00:00 2001
From: hcong <1050828145@qq.com>
Date: 星期四, 21 十一月 2024 11:20:16 +0800
Subject: [PATCH] 弹窗,抽屉关闭的操作放在统一包裹组件中

---
 src/utils/time-util.js |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/utils/time-util.js b/src/utils/time-util.js
index 9f62dcb..951116b 100644
--- a/src/utils/time-util.js
+++ b/src/utils/time-util.js
@@ -13,6 +13,14 @@
     }
   },
 
+  formatYM(date){
+    if (date) {
+      return this.format(date, 'YYYY-MM')
+    } else {
+      return '----/--'
+    }
+  },
+
   formatYMD(date){
     if (date) {
       return this.format(date, 'YYYY-MM-DD')

--
Gitblit v1.9.3