diff --git a/public/auto-update.worker.js b/public/auto-update.worker.js index 41adeae..4dd9078 100644 --- a/public/auto-update.worker.js +++ b/public/auto-update.worker.js @@ -55,4 +55,4 @@ function autoUpdate(duration = 2000) { }, duration); } -autoUpdate(); +autoUpdate(30 * 1000); diff --git a/src/main.ts b/src/main.ts index 461ef95..5de6374 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,6 @@ import { createApp } from "vue"; import App from "./App.vue"; import router from "./router"; -import "@/utils/auto-update"; const app = createApp(App); app.use(router); diff --git a/src/pages/auto-update/index.vue b/src/pages/auto-update/index.vue index 7128cb1..a8b401a 100644 --- a/src/pages/auto-update/index.vue +++ b/src/pages/auto-update/index.vue @@ -1,12 +1,15 @@ - 已开启页面更新监听,具体查看 console 面板 + 已开启页面更新监听,具体查看 console 面板 - + +