huangbin 4 anni fa
parent
commit
9fdb6b8c0a

+ 6 - 6
src/views/market/spot_trade/spot_trade_order_transaction/components/stock-exchange/index.vue

@@ -74,15 +74,15 @@ export default defineComponent({
             const result: QueryHistoryTikDatasRsp[][] = [[], [], []];
             if (len) {
                 if (len === 1) {
-                    result[1] = list;
+                    result[0] = list;
                 } 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 {
                     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;
                     if (last) {
                         if (last === 1) {