This commit is contained in:
scout 2024-03-11 11:32:36 +08:00
parent 4b75dd95a1
commit 41fad85e61

View File

@ -40,7 +40,7 @@ async function needUpdate() {
return result; return result;
} }
// 间隔五分钟 // 间隔五分钟
const DURATION = 100 * 6 * 5; const DURATION = 1000 * 6 ;
function autoRefresh() { function autoRefresh() {
setTimeout(async () => { setTimeout(async () => {
const willUpdate = await needUpdate(); const willUpdate = await needUpdate();
@ -50,7 +50,7 @@ function autoRefresh() {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(async () => { }).then(async () => {
location.reload();
}) })
} }
autoRefresh(); autoRefresh();