初始化
This commit is contained in:
@@ -4,11 +4,20 @@ import App from "./App.vue";
|
||||
import Chart from "./components/chart/index.vue";
|
||||
import * as echarts from "echarts";
|
||||
import echartsConfig from "./config/echarts.config";
|
||||
import { createDiscreteApi } from "naive-ui";
|
||||
import { createPinia } from "pinia";
|
||||
import router from "./router";
|
||||
|
||||
echarts.registerTheme("t-theme", echartsConfig);
|
||||
|
||||
const { message, dialog } = createDiscreteApi(["message", "dialog"]);
|
||||
window.$message = message;
|
||||
window.$modal = dialog;
|
||||
|
||||
const app = createApp(App);
|
||||
|
||||
app.use(createPinia());
|
||||
app.use(router);
|
||||
app.component("TChart", Chart);
|
||||
|
||||
app.mount("#app");
|
||||
|
||||
Reference in New Issue
Block a user