|
@@ -74,15 +74,15 @@ export default defineComponent({
|
|
|
const result: QueryHistoryTikDatasRsp[][] = [[], [], []];
|
|
const result: QueryHistoryTikDatasRsp[][] = [[], [], []];
|
|
|
if (len) {
|
|
if (len) {
|
|
|
if (len === 1) {
|
|
if (len === 1) {
|
|
|
- result[1] = list;
|
|
|
|
|
|
|
+ result[0] = list;
|
|
|
} else if (len === 2) {
|
|
} else if (len === 2) {
|
|
|
- result[1].push(list[0]);
|
|
|
|
|
- result[2].push(list[1]);
|
|
|
|
|
|
|
+ result[0].push(list[0]);
|
|
|
|
|
+ result[1].push(list[1]);
|
|
|
} else {
|
|
} else {
|
|
|
const temp = Math.floor(len / 3);
|
|
const temp = Math.floor(len / 3);
|
|
|
- result[1] = list.slice(0, temp);
|
|
|
|
|
- result[2] = list.slice(temp, 2 * temp);
|
|
|
|
|
- result[3] = list.slice(temp * 2, temp * 3);
|
|
|
|
|
|
|
+ result[0] = list.slice(0, temp);
|
|
|
|
|
+ result[1] = list.slice(temp, 2 * temp);
|
|
|
|
|
+ result[2] = list.slice(temp * 2, temp * 3);
|
|
|
const last = len - temp;
|
|
const last = len - temp;
|
|
|
if (last) {
|
|
if (last) {
|
|
|
if (last === 1) {
|
|
if (last === 1) {
|