From 0e5f14cf081b8cffda12e7c1773fe1b6b69ce2eb Mon Sep 17 00:00:00 2001 From: hcong <1050828145@qq.com> Date: 星期三, 20 十一月 2024 16:43:13 +0800 Subject: [PATCH] 问题和整改的新增以及修改页面点击取消按钮添加取消事件 --- 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