Browse Source

fix: 修复异步加载表格列时,表格设置显示列为空 (#2599)

superlollipop 2 years ago
parent
commit
4c91ac11e2

+ 1 - 1
src/components/Table/src/BasicTable.vue

@@ -75,7 +75,7 @@
   import { warn } from '/@/utils/log';
 
   export default defineComponent({
-    name:'BasicTable',
+    name: 'BasicTable',
     components: {
       Table,
       BasicForm,

+ 1 - 1
src/components/Table/src/components/settings/ColumnSetting.vue

@@ -183,8 +183,8 @@
       });
 
       watchEffect(() => {
+        const columns = table.getColumns();
         setTimeout(() => {
-          const columns = table.getColumns();
           if (columns.length && !state.isInit) {
             init();
           }