diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 3795c73..5e2c09a 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -345,7 +345,7 @@ this.tableWidth = parseInt(getStyle(this.$el, 'width')) - 1; } this.columnsWidth = {}; - if(this.$refs.tbody===undefined ) {return;} + if (!this.$refs.tbody) return; this.$nextTick(() => { let columnsWidth = {}; let autoWidthIndex = -1; -- libgit2 0.21.4