优化因为多次调用接口 导致的alertmessageTable卡顿的问题

This commit is contained in:
zhangyu
2020-08-03 10:47:04 +08:00
parent 5592cd5a5e
commit 6a1abe2e53
3 changed files with 21 additions and 4 deletions

View File

@@ -172,6 +172,7 @@ export default {
total: 0
},
storedTableData:[],
requestIndex:0,
storedScreanTableData:[],
images: '',
//toolbox: false,
@@ -566,7 +567,12 @@ export default {
}
});
}
this.$set(item, "current", current);
this.requestIndex+=1;
item.current=current;
if(this.requestIndex===this.tableData.length){
this.$set(item, "current", current);
this.requestIndex=0;
}
});
}
});