1: Add in paging:
:current-page.sync="params.current"
2: Make your own or use el's jump code
<span class="footsize">
跳至
<el-input v-model="params.current" class="pageinput" />页
</span>
<el-button class="pageBtn" @click="ChangeCurrent(params.current)">确定</el-button>
3: Assign value when determined
const ChangeCurrent = (val) => {
getList()
state.params.current = Number(val)
}
Tips: 1: Be sure to write .sync in the first step
2: In the third part, if your current is not a numeric type, you must convert it to