|
@@ -446,11 +446,18 @@
|
|
|
}
|
|
|
} else {
|
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
|
+ setTimeout(() => {
|
|
|
+ clearInterval(intervaler);
|
|
|
+ quit();
|
|
|
+ }, 3000);
|
|
|
}
|
|
|
} else if (res.status === 5200) {
|
|
|
if (timeInterval > 7) {
|
|
|
$.toast('网络异常,请稍后重试', 'text');
|
|
|
timerInterval = clearTimeout()
|
|
|
+ setTimeout(() => {
|
|
|
+ quit();
|
|
|
+ }, 3000)
|
|
|
return
|
|
|
}
|
|
|
timerInterval = setTimeout(() => {
|
|
@@ -1015,9 +1022,11 @@
|
|
|
}
|
|
|
if (event.data === 'close') {
|
|
|
$.toast('画面异常,请重新进入', 'text');
|
|
|
- decodeWoker.postMessage('close');
|
|
|
- decodeWoker.terminate();
|
|
|
- quit();
|
|
|
+ setTimeout(() => {
|
|
|
+ decodeWoker.postMessage('close');
|
|
|
+ decodeWoker.terminate();
|
|
|
+ quit();
|
|
|
+ }, 3000);
|
|
|
}
|
|
|
};
|
|
|
}
|