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.
11 lines
363 B
11 lines
363 B
import { createApp } from 'vue'
|
|
import App from './App.vue'
|
|
import router from './router' // 👈 引入路由
|
|
// 引入 Element Plus
|
|
import ElementPlus from 'element-plus'
|
|
import 'element-plus/dist/index.css' // 引入样式
|
|
|
|
const app = createApp(App)
|
|
app.use(router) // 👈 关键!注册 router 插件
|
|
app.use(ElementPlus) // 全局注册
|
|
app.mount('#app')
|
|
|