fix: 修复异步加载表格列时,表格设置显示列为空 (#2599)
This commit is contained in:
parent
ce480c5d66
commit
4c91ac11e2
|
|
@ -75,7 +75,7 @@
|
|||
import { warn } from '/@/utils/log';
|
||||
|
||||
export default defineComponent({
|
||||
name:'BasicTable',
|
||||
name: 'BasicTable',
|
||||
components: {
|
||||
Table,
|
||||
BasicForm,
|
||||
|
|
|
|||
|
|
@ -183,8 +183,8 @@
|
|||
});
|
||||
|
||||
watchEffect(() => {
|
||||
const columns = table.getColumns();
|
||||
setTimeout(() => {
|
||||
const columns = table.getColumns();
|
||||
if (columns.length && !state.isInit) {
|
||||
init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue