调整generate四张图片出现失败结果
This commit is contained in:
@@ -1167,19 +1167,18 @@ export default defineComponent({
|
||||
(rv) => {
|
||||
if(this.isShowMark){//防止取消后有正在执行的获取状态
|
||||
let arr:any = []
|
||||
arr = rv.filter((item:any)=>item.status != 'Success')
|
||||
arr = rv.filter((item:any)=>item.status != 'Success' && item.status != 'Fail')
|
||||
rv.forEach((element:any) => {
|
||||
element.imgUrl = element.url
|
||||
this.generateList.forEach((item:any,index:any) => {
|
||||
|
||||
if(item.taskId == element.taskId && element.status == 'Success'){
|
||||
|
||||
this.generateList[index] = element
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if(arr.length == 0){
|
||||
this.generateList = this.generateList.filter((item:any)=>item.status == 'Success')
|
||||
clearInterval(this.generateTime)
|
||||
clearInterval(this.remGenerateTime)
|
||||
this.isShowMark = false
|
||||
|
||||
Reference in New Issue
Block a user