fix chartjs register

This commit is contained in:
2025-10-04 13:29:13 +08:00
parent a823cb7a13
commit ef0b0c5528
4 changed files with 41 additions and 31 deletions

View File

@@ -2,22 +2,6 @@ import { addAPIProvider } from "@iconify/vue"
import { createPinia } from "pinia"
import { createRouter, createWebHistory } from "vue-router"
import {
ArcElement,
BarElement,
BarController,
CategoryScale,
Chart as ChartJS,
Colors,
Legend,
LinearScale,
LineController,
Title,
Tooltip,
LineElement,
PointElement,
} from "chart.js"
import { STORAGE_KEY } from "utils/constants"
import storage from "utils/storage"
@@ -82,21 +66,6 @@ router.beforeEach(async (to, from, next) => {
next()
})
ChartJS.register(
CategoryScale,
LinearScale,
BarElement,
BarController,
ArcElement,
LineElement,
LineController,
PointElement,
Colors,
Title,
Tooltip,
Legend,
)
const pinia = createPinia()
const app = createApp(App)
app.use(router)