From 55955f56fdae8977e6372c333a13e0d60ecb3397 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 07 五月 2025 15:23:04 +0800 Subject: [PATCH] qx --- 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