vue - element-admin keepAlive后部分表格错位

//解决方案
 <el-table v-loading="loading" ref="table" height="100%" :data="tableData" style="width: 100%" border></el-table>

let that = this;
this.$nextTick(() => {
     that.$refs.table.doLayout(); // 解决表格错位
});
posted @ 2020-12-08 09:58  gggggggxin  阅读(351)  评论(0)    收藏  举报