element-plus中el-pagination分页组件显示英文问题

问题如下图:

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA6Ii56ZW_5Zyo6Ii55LiK,size_20,color_FFFFFF,t_70,g_se,x_16

 

 

解决办法:

在main.js或者main.ts中引入中文包

import locale from "element-plus/lib/locale/lang/zh-cn";
const app = createApp(App)
app.use(ElementPlus,{locale})
app.mount('#app')

效果图:

watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBA6Ii56ZW_5Zyo6Ii55LiK,size_20,color_FFFFFF,t_70,g_se,x_16

 

 

你可能感兴趣的:(element-ui,Vue,vue.js,javascript)