src/tabviews/custom/components/chart/antv-X6/index.jsx
@@ -1563,12 +1563,16 @@ setback = () => { if (this.mkGraph.canUndo()) { this.mkGraph.undo() } else { message.warning('无可撤销记录!') } } setprev = () => { if (this.mkGraph.canRedo()) { this.mkGraph.redo() } else { message.warning('无可前进记录!') } } @@ -1746,7 +1750,10 @@ let cells = this.mkGraph.getCells() const that = this if (cells.length === 0) return if (cells.length === 0) { message.warning('尚未添加元素!') return } confirm({ title: '确定清空元素吗?',