src/templates/sharecomponent/tablecomponent/index.jsx
@@ -51,6 +51,8 @@ this.onTableChange(table) } else if (type === 'del') { this.deleteTable(table) } else if (type === 'init' && window.GLOB.publicTables.length === 0) { this.onTableChange(table) } } @@ -102,7 +104,7 @@ let _table = tables.filter(item => item.TbName === value)[0] if (selectedTables.findIndex(cell => cell.TbName === value) > -1) return if (!_table || selectedTables.findIndex(cell => cell.TbName === value) > -1) return let _tables = [...selectedTables, _table]