You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
651 B

import { createApp } from 'vue' // 引入vue实例
import App from './App.vue' // 引入App.vue
import router from './router' // 引入router
import axios from './api/axiosConfig'; // 引入axiosConfig
import VotingManagement from './views/VotingManagement.vue' // 引入VotingManagement.vue
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
const app = createApp(App) // 创建vue实例
app.use(router) // 添加路由
app.component('VotingManagement', VotingManagement) // 注册组件
app.config.globalProperties.axios = axios; // 全局挂载axios
app.mount('#app') // 挂载到id为app的div上
app.use(ElementPlus)