1.在viewrouter添加
<el-config-provider :locale="Goto">
<router-view />
</el-config-provider>
<script setup>
import Goto from 'element-plus/dist/locale/zh-cn.mjs'
2.在使用分页文件添加
// 分页
import Goto from 'element-plus/dist/locale/zh-cn.mjs'
Goto.el.pagination = {
goto: "跳转至",
pageClassifier: "",
pagesize: "",
total: "{total} 条数据",
};