小调整。
parent
66dbd559bb
commit
8578221884
|
@ -18,9 +18,6 @@ function handleServerStartError (message, err, app, api) {
|
||||||
// 避免重复弹窗
|
// 避免重复弹窗
|
||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
if (latestConfirmTime != null && now - latestConfirmTime < 1000) {
|
if (latestConfirmTime != null && now - latestConfirmTime < 1000) {
|
||||||
if (now - latestConfirmTime > 5000) {
|
|
||||||
latestConfirmTime = null
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
latestConfirmTime = now
|
latestConfirmTime = now
|
||||||
|
|
Loading…
Reference in New Issue