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.

19 lines
490 B

//引入createApp用于创建应用
import { createApp } from 'vue'
import './style.css'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入App根组件
import App from './components/Home.vue'
//引入路由器
import router from './router'
import { createPinia } from 'pinia'
//创建一个应用
const app=createApp(App)
//使用路由器
app.use(router)
app.use(ElementPlus)
const pinia=createPinia()
app.use(pinia)
//挂载整个应用
app.mount('#app')