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;
}
// 间隔五分钟
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();