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';