From 32eedf2857255cf29985ffc0cc73e75eccda39bf Mon Sep 17 00:00:00 2001 From: Riku <risaku@163.com> Date: 星期六, 20 九月 2025 22:18:15 +0800 Subject: [PATCH] 2025.9.20 完成现场巡查基础数据产品和月度巡查简报的中间数据产品 --- src/main.js | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/src/main.js b/src/main.js index c56a19a..175bb60 100644 --- a/src/main.js +++ b/src/main.js @@ -9,14 +9,27 @@ // import 'element-plus/dist/index.css'; import './assets/main.css'; +import { ElMessageBox, ElNotification, ElMessage } from 'element-plus'; import 'element-plus/theme-chalk/src/overlay.scss'; import 'element-plus/theme-chalk/src/message.scss'; 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; +app.config.globalProperties.$message = ElMessage +app.config.globalProperties.$notification = ElNotification +app.config.globalProperties.$messageBox = ElMessageBox for (const [key, component] of Object.entries(ElementPlusIconsVue)) { app.component(key, component); -- Gitblit v1.9.3