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.

12 lines
363 B

4 months ago
import { createApp } from 'vue'
import App from './App.vue'
4 months ago
import router from './router' // 👈 引入路由
4 months ago
// 引入 Element Plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' // 引入样式
4 months ago
4 months ago
const app = createApp(App)
4 months ago
app.use(router) // 👈 关键!注册 router 插件
4 months ago
app.use(ElementPlus) // 全局注册
4 months ago
app.mount('#app')