// 如果第一次发生404,则隔1s后再调用一次本接口;(因为ucloud主从同步可能有延迟)

dev_cs_new
hjm 6 years ago
parent de64fc0fab
commit 24bf86ca6a

@ -498,7 +498,7 @@ pop_box_new(htmlvalue, 480, 182);
return resData
}
fetchAll(stageId) {
fetchAll(stageId, noTimeout) {
if (window.__fetchAllFlag == true ) {
console.log('TPIContextProvider call fetchAll repeatly!')
@ -544,6 +544,13 @@ pop_box_new(htmlvalue, 480, 182);
return;
}
if (response.data.status == 404) {
// 如果第一次发生404则隔1s后再调用一次本接口因为ucloud主从同步可能有延迟
if (!noTimeout) {
setTimeout(() => {
this.fetchAll(stageId, true)
}, 1000)
return;
}
window.location.href = '/myshixuns/not_found'
return;
}

Loading…
Cancel
Save