Solve the problem that the initial data of el-table is the table header jitter

beforeUpdate(){
    this.$nextTick(() => { //在数据加载完,重新渲染表格
    	this.$refs.table.doLayout();
    })
}

Use the vue life cycle to re-render the table after the data loading is complete, and the ui display will be more stable

Guess you like

Origin blog.csdn.net/weixin_58421147/article/details/123075174