diff --git a/src/libs/osmos.js b/src/libs/osmos.js index 0a294eb2..c3d5385d 100644 --- a/src/libs/osmos.js +++ b/src/libs/osmos.js @@ -3,7 +3,7 @@ * @Autor: dingyiming * @Date: 2021-11-22 21:20:10 * @LastEditors: dingyiming - * @LastEditTime: 2021-11-23 11:19:51 + * @LastEditTime: 2021-11-25 00:45:16 */ import fetch from 'node-fetch' import { getLocalChains } from './data/data' @@ -47,14 +47,14 @@ export default class OsmosAPI { const result = [] for (let i = 0; i < output.length; i += 1) { const itemArr = output[i] - result.push({ - time: itemArr[0], - volume: 0, - open: itemArr[1], - high: itemArr[2], - low: itemArr[3], - close: itemArr[4], - }) + result.push([ + itemArr[0], + itemArr[1], // open + itemArr[2], // high + itemArr[3], // low + itemArr[4], // close + 0, // volume + ]) } return result }) diff --git a/src/views/OsmosisTrade.vue b/src/views/OsmosisTrade.vue index fe24ef52..f4b2e7b2 100644 --- a/src/views/OsmosisTrade.vue +++ b/src/views/OsmosisTrade.vue @@ -64,8 +64,10 @@