diff --git a/frontend/src/components/stock.vue b/frontend/src/components/stock.vue index cafaf44..b282f38 100644 --- a/frontend/src/components/stock.vue +++ b/frontend/src/components/stock.vue @@ -1815,7 +1815,7 @@ function searchStockReport(stockCode) { - + diff --git a/frontend/src/components/stockSparkLine.vue b/frontend/src/components/stockSparkLine.vue index 30a2e56..29a5fe8 100644 --- a/frontend/src/components/stockSparkLine.vue +++ b/frontend/src/components/stockSparkLine.vue @@ -114,7 +114,8 @@ function setChartData(chart) { } onMounted(() => { - const chart = echarts.init(chartRef.value); + + const chart = echarts.init( document.getElementById('sparkLine'+stockCode)); setChartData(chart); // setInterval(() => { @@ -123,6 +124,6 @@ onMounted(() => { }) \ No newline at end of file