未验证 提交 4c91ac11 编写于 作者: quanbisen's avatar quanbisen 提交者: GitHub

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

上级 ce480c5d
...@@ -75,7 +75,7 @@ ...@@ -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,
......
...@@ -183,8 +183,8 @@ ...@@ -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();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册