From 546d0771b90a399347d886c13e314bb6e5f76938 Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期三, 20 十一月 2024 14:58:13 +0800 Subject: [PATCH] 多写了一个emits选项 --- src/main.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index c56a19a..511d8bd 100644 --- a/src/main.js +++ b/src/main.js @@ -14,6 +14,14 @@ import 'element-plus/theme-chalk/src/message-box.scss'; import 'element-plus/theme-chalk/src/notification.scss'; +// dayjs plugin +import dayjs from 'dayjs'; +import isSameOrAfter from 'dayjs/plugin/isSameOrAfter'; +import isSameOrBefore from 'dayjs/plugin/isSameOrBefore'; + +dayjs.extend(isSameOrAfter); +dayjs.extend(isSameOrBefore); + const app = createApp(App); app.config.globalProperties.$fm = timeUtil; -- Gitblit v1.9.3