Commit c475638e authored by “yiyousong”'s avatar “yiyousong”

pref:修改数据切片

parent 595e7d05
...@@ -1174,7 +1174,7 @@ export default { ...@@ -1174,7 +1174,7 @@ export default {
dataList = [...dataList, ...data]; dataList = [...dataList, ...data];
this.$app.loading = true; this.$app.loading = true;
this.$app.percentage = parseInt((dataList.length / total) * 100); this.$app.percentage = parseInt((dataList.length / total) * 100);
if (dataList.length >= total || data.data.length == 0) { if (dataList.length >= total || data.length == 0) {
if (callback) callback(dataList); if (callback) callback(dataList);
this.$app.loading = false; this.$app.loading = false;
this.$app.percentage = 1; this.$app.percentage = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment