From f9902f7a3b79d22bde9f199263ac36de26816470 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期五, 08 五月 2026 14:46:10 +0800
Subject: [PATCH] 测试完成
---
src/main.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/main.js b/src/main.js
index ebc84a8..1b2328d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -51,6 +51,7 @@
import {
parseTime,
formatTime,
+ followupAuthority,
resetForm,
addDateRange,
selectDictLabel,
@@ -92,6 +93,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;
@@ -103,6 +112,7 @@
Vue.prototype.formatTime = formatTime;
Vue.prototype.daysBetween = daysBetween;
Vue.prototype.resetForm = resetForm;
+Vue.prototype.followupAuthority = followupAuthority;
Vue.prototype.addDateRange = addDateRange;
Vue.prototype.selectDictLabel = selectDictLabel;
Vue.prototype.selectDictLabels = selectDictLabels;
--
Gitblit v1.9.3