|
@@ -143,6 +143,10 @@ export default defineComponent({
|
|
}
|
|
}
|
|
|
|
|
|
// prefetch sliceUrls image
|
|
// prefetch sliceUrls image
|
|
|
|
+ if (store.tasks.length > 1) {
|
|
|
|
+ // 如果不是当前任务,则先等3秒再去取任务,以免和其他请求争夺网络资源
|
|
|
|
+ await new Promise((resolve) => setTimeout(resolve, 3000));
|
|
|
|
+ }
|
|
for (const sliceUrl of (res.data as Task).sliceUrls) {
|
|
for (const sliceUrl of (res.data as Task).sliceUrls) {
|
|
fetch(sliceUrl);
|
|
fetch(sliceUrl);
|
|
}
|
|
}
|