From 41fad85e6163b598d66e75510199733d3f6d073b Mon Sep 17 00:00:00 2001 From: scout <1134087124@qq.com> Date: Mon, 11 Mar 2024 11:32:36 +0800 Subject: [PATCH] fixbug --- src/utils/auto-update.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/auto-update.js b/src/utils/auto-update.js index 4efa0c2..8df03c4 100644 --- a/src/utils/auto-update.js +++ b/src/utils/auto-update.js @@ -40,7 +40,7 @@ async function needUpdate() { return result; } // 间隔五分钟 -const DURATION = 100 * 6 * 5; +const DURATION = 1000 * 6 ; function autoRefresh() { setTimeout(async () => { const willUpdate = await needUpdate(); @@ -50,7 +50,7 @@ function autoRefresh() { cancelButtonText: '取消', type: 'warning' }).then(async () => { - + location.reload(); }) } autoRefresh();