import {
createApp
} from 'vue'
import router from './router'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import zhCn from 'element-plus/es/locale/lang/zh-cn' //1 引入中文
import App from './App.vue'
const app = createApp(App)
app.use(ElementPlus, {
locale: zhCn //2 这里使用中文
}).use(router)
app.mount('#app')
打包报错
如果引入了ts,是为了防止打包报错,需要加上这个//@ts-ignore 忽略打包类型检查
import './assets/main.css'
import {
createApp
} from 'vue'
//页面引入store
import store from './store'
import App