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

perf: 优化数据引擎列表显示

parent d1924a90
...@@ -196,20 +196,20 @@ export default { ...@@ -196,20 +196,20 @@ export default {
}, },
letTableData() { letTableData() {
let arr = this.data.slice(0, 5); let arr = this.data.slice(0, 5);
if (arr.length) { // if (arr.length) {
while (arr.length < 5) { // while (arr.length < 5) {
arr.push(null); // arr.push(null);
} // }
} // }
return arr; return arr;
}, },
rightTableData() { rightTableData() {
let arr = this.data.slice(5, 10); let arr = this.data.slice(5, 10);
if (arr.length) { // if (arr.length) {
while (arr.length < 5) { // while (arr.length < 5) {
arr.push(null); // arr.push(null);
} // }
} // }
return arr; return arr;
} }
}, },
......
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