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

This commit is contained in:
superlollipop 2023-03-04 14:08:32 +08:00 committed by GitHub
parent ce480c5d66
commit 4c91ac11e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

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