vue3.0之elementui分页bug
作者:互联网
场景描述:
表格在第二页删除一个数据,然后重新调取列表接口,发现接口数据在第一页,然而视图数据在第二页,关键是current-page改变无效果
解决方案
https://blog.csdn.net/mm0715/article/details/102795167
el-pagination v-if="pageshow"
let data = reactive({ time: '', tableData: [], rows: 6, page: 1, total: 0, pageshow: true, startTime: '', endTime: '' });
const deleteUserList = (val: object) => { const parmas = { id: (val as any).id }; SourceMirror.deleteItem(parmas).then(async res => { if (res.data.code == 200) { proxy.$message({ message: '删除成功', type: 'success' }); data.pageshow = false; getList(); await nextTick(); data.pageshow = true; } }); };
标签:elementui,true,res,第二页,pageshow,vue3.0,message,data,bug 来源: https://www.cnblogs.com/lsc-boke/p/14662761.html