src/menu/components/share/pastecomponent/index.jsx
@@ -170,11 +170,23 @@ let keys = config.cols.map(col => (col.field || '$empty')) let cols = [] res.cols.forEach(col => { if (!keys.includes(col.field)) { config.cols.push(col) if (!col.field || !keys.includes(col.field)) { cols.push(col) } }) if (cols.length === 0) { notification.warning({ top: 92, message: '显示列已存在!', duration: 5 }) return } else { config.cols.push(...cols) } } this.props.updateConfig(config, type)