From 21051d356bb8589ad088abb52492fd2a1909ed9e Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期六, 14 三月 2026 10:39:09 +0800
Subject: [PATCH] 测试完成

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

diff --git a/src/main.js b/src/main.js
index 680da18..06edb6c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -13,6 +13,7 @@
 import router from "./router";
 import directive from "./directive"; // directive
 import plugins from "./plugins"; // plugins
+import Print from 'vue-print-nb'
 import { download } from "@/utils/request";
 //寮曞叆quill-editor缂栬緫鍣�
 import VueQuillEditor from "vue-quill-editor";
@@ -21,10 +22,14 @@
 import "quill/dist/quill.snow.css";
 import "quill/dist/quill.bubble.css";
 Vue.use(VueQuillEditor);
+Vue.use(Print)
+
 // 寮曞叆
 import { codemirror } from "vue-codemirror";
 import "@/utils/cm-setting.js";
 Vue.component("codemirror", codemirror);
+import preventReClick from '@/utils/directives/preventReClick';
+Vue.use(preventReClick);
 
 import { Quill } from "vue-quill-editor";
 window.Quill = Quill;
@@ -45,11 +50,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);
@@ -75,6 +82,8 @@
 import components from "./components";
 // 璇煶缁勪欢
 import VueAudio from 'vue-audio-better'
+// 寮规鎷栧姩
+import '@/utils/drag.js';
 // 娉ㄥ唽杩囨护鍣�
 // 鑷畾涔夋寚浠�
 import * as directives from "./directives";
@@ -83,6 +92,14 @@
   Vue.filter(key, filters[key]);
 }
 import moment from "moment"
+// 1. 鍦╩ain.js涓坊鍔犻敊璇洃鍚�
+window.addEventListener('unhandledrejection', (event) => {
+  if (event.reason && event.reason.message &&
+      event.reason.message.includes('Loading chunk')) {
+    // 閲嶆柊鍔犺浇椤甸潰
+    window.location.reload();
+  }
+});
 
 Vue.prototype.$moment = moment;
 
@@ -91,6 +108,8 @@
 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;

--
Gitblit v1.9.3