jhzh
2024-08-12 3252eb2d24b8c2ff7490d842227466bb8b6e0014
src/components/kline-charts/index.vue
@@ -22,7 +22,17 @@
</template>
<script>
import { init, dispose } from 'klinecharts'
// import KLineChart  from 'klinecharts'
// const chart = new KLineChart(document.getElementById('kline'));
// chart.setOptions({
//   interaction: {
//     // 禁用手势的恢复功能
//     restore: false,
//   }
// });
let chart = null
import { _getKline } from '@/API/trade.api'
import config from './config'
import { Loading } from 'vant';
@@ -158,7 +168,7 @@
          chart.applyNewData(data);
          this.$emit('updataLine', false)
        })
      }, 1000);
      }, 10000);
    },
    setChartType() {
      let type = 'area'