From 89292199af8b4db3a6333b9941ef277f26490f6d Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期一, 14 十月 2024 17:06:55 +0800 Subject: [PATCH] 1. 添加dayjs插件声明 --- src/main.js | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index 8a0d286..e7e95b7 100644 --- a/src/main.js +++ b/src/main.js @@ -15,6 +15,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