From 6d7cd13eecd3a6f176d310986b4750b0c407e3a1 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 21 五月 2025 14:40:43 +0800
Subject: [PATCH] 测试完成

---
 src/main.js |   34 +++++++++++++++++-----------------
 1 files changed, 17 insertions(+), 17 deletions(-)

diff --git a/src/main.js b/src/main.js
index 5d1eefd..e523ac8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -25,32 +25,19 @@
 import { codemirror } from "vue-codemirror";
 import "@/utils/cm-setting.js";
 Vue.component("codemirror", codemirror);
-//  import VueCodeMirror from 'vue-codemirror'
-//  import 'vue-codemirror/dist/codemirror.css'
-//  Vue.use(VueCodeMirror)
 
-//瀹炵幇quill-editor缂栬緫鍣ㄦ嫋鎷戒笂浼犲浘鐗�
-//  import Quill from 'quill'
 import { Quill } from "vue-quill-editor";
 window.Quill = Quill;
 import imageResize from "quill-image-resize";
-//  const scriptEl = document.createElement('script');
-// 	scriptEl.charset = 'utf-8'
-// 	scriptEl.src =  './image-resize.min.js'
-// 	const head = document.head || document.getElementsByTagName('head')[0];
-// 	head.appendChild(scriptEl);
+
 
 import { ImageDrop } from "quill-image-drop-module";
-//  import imageResize from 'quill-image-resize'
 Quill.register("modules/imageDrop", ImageDrop);
-//  import imageResize from 'quill-image-resize-module'
 Quill.register("modules/imageResize", imageResize);
-//瀹炵幇quill-editor缂栬緫鍣ㄨ皟鏁村浘鐗囧昂瀵�
-//  Quill.register('modules/imageResize', ImageResize)
 
-import LemonIMUI from "lemon-imui";
-import "lemon-imui/dist/index.css";
-Vue.use(LemonIMUI);
+// import LemonIMUI from "lemon-imui";
+// import "lemon-imui/dist/index.css";
+// Vue.use(LemonIMUI);
 
 import "./assets/icons"; // icon
 import "./permission"; // permission control
@@ -58,11 +45,13 @@
 import { getConfigKey } from "@/api/system/config";
 import {
   parseTime,
+  formatTime,
   resetForm,
   addDateRange,
   selectDictLabel,
   selectDictLabels,
   handleTree,
+  daysBetween,
 } from "@/utils/ruoyi";
 import LemonMessageVoice from './websocket/lemon-message-voice';
 Vue.component(LemonMessageVoice.name,LemonMessageVoice);
@@ -86,6 +75,10 @@
 import DictData from "@/components/DictData";
 // 缁勪欢灏佽闆嗘垚
 import components from "./components";
+// 璇煶缁勪欢
+import VueAudio from 'vue-audio-better'
+// 寮规鎷栧姩
+import '@/utils/drag.js';
 // 娉ㄥ唽杩囨护鍣�
 // 鑷畾涔夋寚浠�
 import * as directives from "./directives";
@@ -93,12 +86,17 @@
 for (let key in filters) {
   Vue.filter(key, filters[key]);
 }
+import moment from "moment"
+
+Vue.prototype.$moment = moment;
 
 // 鍏ㄥ眬鏂规硶鎸傝浇
 
 Vue.prototype.getDicts = getDicts;
 Vue.prototype.getConfigKey = getConfigKey;
 Vue.prototype.parseTime = parseTime;
+Vue.prototype.formatTime = formatTime;
+Vue.prototype.daysBetween = daysBetween;
 Vue.prototype.resetForm = resetForm;
 Vue.prototype.addDateRange = addDateRange;
 Vue.prototype.selectDictLabel = selectDictLabel;
@@ -119,6 +117,7 @@
 Vue.use(directive);
 Vue.use(plugins);
 Vue.use(VueMeta);
+Vue.use(VueAudio)
 DictData.install();
 Vue.use(components);
 // Vue.use(VueQuillEditor)
@@ -144,3 +143,4 @@
   store,
   render: (h) => h(App),
 });
+

--
Gitblit v1.9.3