SOURCE

import {createApp} from 'vue';
import App from './App.vue';
import router from './router/index.js';
import directives from './directives';
import echarts from './plugins/echarts';
import './assets/css/element-variable.scss';
import './assets/css/common.scss';

// 引入公共JS
import utils from './api/utils.js';
// Store
import store from './store';

// 引入axiosApi
import axiosApi from './api/axios.js';

const app = createApp(App);
app.config.globalProperties.$utils = utils;
app.config.globalProperties.$echarts = echarts;

app.use(axiosApi);

app.use(directives);

app.use(store); // 启用 Pinia

app.use(router);
app.mount('#app');
console 命令行工具 X clear

                    
>
console