From 208d124f1512f45c90ac41849bd50dffda2d4f4a Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期三, 07 五月 2025 17:29:34 +0800
Subject: [PATCH] 1

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

diff --git a/src/main.js b/src/main.js
index 302cecd..7e6eb69 100644
--- a/src/main.js
+++ b/src/main.js
@@ -14,6 +14,20 @@
 import plugins from "./plugins"; // plugins
 import { download } from "@/utils/request";
 import Print from "vue-print-nb";
+ 
+import Updater from "./utils/AutoUpdate.js";
+ 
+//鍓嶇閲嶆柊閮ㄧ讲閫氱煡鐢ㄦ埛鍒锋柊缃戦〉
+const AutoUpdate = new Updater()
+AutoUpdate.on('update',()=>{
+  setTimeout(async()=>{
+      const result = confirm('褰撳墠鐗堟湰宸叉洿鏂帮紝璇风偣鍑荤‘瀹氬埛鏂伴〉闈綋楠�');
+      if(result){
+        location.reload();
+      }
+  },500)
+})
+ 
 
 import JsonExcel from "vue-json-excel";
 

--
Gitblit v1.8.0