在main.js中
import {
createApp
} from 'vue'
import App from './App.vue'
// 引入 element
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import locale from 'element-plus/lib/locale/lang/zh-cn'
// 引入 element end
// 注意要在 const app = createApp(App) 后面写 app.use(ElementPlus, { locale })
const app = createApp(App)
app.use(ElementPlus, { locale })
app.mount('#app')
网友评论