This commit is contained in:
2026-06-04 17:51:11 +08:00
parent 65033666ef
commit c6a8bc39da
22 changed files with 39 additions and 41 deletions
+1 -2
View File
@@ -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>