fixbug
This commit is contained in:
parent
4b75dd95a1
commit
41fad85e61
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user