添加忽略二次提示
parent
e6c3815493
commit
83000b75ca
|
@ -118,11 +118,13 @@ export default () => {
|
||||||
if (result.version === ignoreVersion) return
|
if (result.version === ignoreVersion) return
|
||||||
void nextTick(() => {
|
void nextTick(() => {
|
||||||
versionInfo.showModal = true
|
versionInfo.showModal = true
|
||||||
if (status == 'error' && preStatus == 'downloading') {
|
if (status == 'error' && preStatus == 'downloading' && !localStorage.getItem('update__download_failed_tip')) {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
void dialog({
|
void dialog({
|
||||||
message: window.i18n.t('update__error_top'),
|
message: window.i18n.t('update__error_top'),
|
||||||
confirmButtonText: window.i18n.t('alert_button_text'),
|
confirmButtonText: window.i18n.t('alert_button_text'),
|
||||||
|
}).finally(() => {
|
||||||
|
localStorage.setItem('update__download_failed_tip', '1')
|
||||||
})
|
})
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue