feat: 去掉超时报错

This commit is contained in:
kenny
2025-11-24 14:49:14 +08:00
parent fd67fa8c20
commit 50f6e8a4ba
4 changed files with 77 additions and 3 deletions
+10 -3
View File
@@ -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);
}