添加忽略二次提示

pull/1211/head
lyswhut 2023-02-05 13:38:25 +08:00
parent e6c3815493
commit 83000b75ca
1 changed files with 3 additions and 1 deletions

View File

@ -118,11 +118,13 @@ export default () => {
if (result.version === ignoreVersion) return
void nextTick(() => {
versionInfo.showModal = true
if (status == 'error' && preStatus == 'downloading') {
if (status == 'error' && preStatus == 'downloading' && !localStorage.getItem('update__download_failed_tip')) {
setTimeout(() => {
void dialog({
message: window.i18n.t('update__error_top'),
confirmButtonText: window.i18n.t('alert_button_text'),
}).finally(() => {
localStorage.setItem('update__download_failed_tip', '1')
})
}, 500)
}