x
This commit is contained in:
@@ -83,8 +83,6 @@ import { useRouter } from 'vue-router'
|
||||
import { apiRequest } from '@/shared/api'
|
||||
import { Chart, registerables } from 'chart.js'
|
||||
|
||||
Chart.register(...registerables)
|
||||
|
||||
const router = useRouter()
|
||||
const chartCanvas = ref<HTMLCanvasElement | null>(null)
|
||||
let chartInstance: Chart | null = null
|
||||
@@ -206,6 +204,7 @@ const renderChart = () => {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
Chart.register(...registerables)
|
||||
loadAluminumPrice()
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user