feat: 去掉超时报错
This commit is contained in:
+10
-3
@@ -1,5 +1,9 @@
|
||||
<template>
|
||||
<view style="overflow-x: hidden; font-size: 0">
|
||||
|
||||
<!-- <Custom-Header></Custom-Header> -->
|
||||
|
||||
|
||||
<img
|
||||
v-if="isInPptr"
|
||||
src="/static/header.png"
|
||||
@@ -394,6 +398,7 @@
|
||||
import TypeOfMass from './component/FirstStyleType/TypeOfMass.vue';
|
||||
import Movementtype from './component/FirstStyleType/Movementtype.vue';
|
||||
import ReportApi from '../../sheep/api/report';
|
||||
import CustomHeader from './component/CustomHeader/CustomHeader.vue';
|
||||
|
||||
import * as abc from './api';
|
||||
console.log('exchangeHairHistoryByTaskId: xxxxxxxxxx', abc.exchangeHairHistoryByTaskId);
|
||||
@@ -797,9 +802,11 @@
|
||||
|
||||
if ([...new Set(images)].length === 3) {
|
||||
resolve(ress);
|
||||
} else if (tries >= maxTries) {
|
||||
reject(new Error('轮询超时'));
|
||||
} else {
|
||||
}
|
||||
// else if (tries >= maxTries) {
|
||||
// reject(new Error('轮询超时'));
|
||||
// }
|
||||
else {
|
||||
tries++;
|
||||
setTimeout(() => poll(resolve, reject), interval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user