解决超时中断报错

This commit is contained in:
Dragon
2022-12-15 10:33:30 +08:00
parent 2426a62bd1
commit 08878f70a5

View File

@@ -172,7 +172,7 @@ const getNewestAct = () => {
},
complete: function (XMLHttpRequest, status) {
if (status == 'timeout') {
xhr.abort()// 超时后中断请求
XMLHttpRequest.abort()// 超时后中断请求
hideLoading(layerIndex);
toastMsg('網絡開小差,請退出重進,開獎結果可通過【遊戲記錄】/【往輪結果】查看~')
}