Source address: https://www.cnblogs.com/lily-sblog666/p/12915068.html

Methods a

Set it in the CSS

/deep/.el-table--border th.gutter:last-of-type {
    display: table-cell ! important; }Copy the code

Method 2

DoLayout force rendering is performed after data is retrieved

setTimeout(() = > {
    this.$nextTick(() = > {
        this.$refs.table.doLayout()
    })
}, 300)
Copy the code