Commit e87c7b31 by lijiabin

【需求 21402】 chore: 修改轮询时间

parent 283c148f
......@@ -4,6 +4,8 @@ async function getInfo() {
return data as { version: string; updateInfo: string }
}
const LOOP_INTERVAL = 1000 * 60 * 2 // 2 minutes
export async function loopGetVersion() {
const { version } = await getInfo()
let hasShow = false
......@@ -49,5 +51,5 @@ export async function loopGetVersion() {
]),
})
hasShow = true
}, 10000)
}, LOOP_INTERVAL)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment