| | |
| | | notification.success({ |
| | | top: 92, |
| | | message: '执行成功。', |
| | | duration: 2 |
| | | duration: 1 |
| | | }) |
| | | |
| | | if (updateConfig) { |
| | |
| | | } else { |
| | | setTimeout(() => { |
| | | window.location.reload() |
| | | }, 2000) |
| | | }, 1000) |
| | | } |
| | | } |
| | | }) |
| | |
| | | notification.success({ |
| | | top: 92, |
| | | message: '执行成功。', |
| | | duration: 2 |
| | | duration: 1 |
| | | }) |
| | | |
| | | if (updateConfig) { |
| | |
| | | } else { |
| | | setTimeout(() => { |
| | | window.location.reload() |
| | | }, 2000) |
| | | }, 1000) |
| | | } |
| | | } |
| | | }) |
| | |
| | | <div className="header"><Icon type="question-circle"/>版本切换</div> |
| | | <div className="detail">请选择需要切换的版本,或点击取消关闭弹窗。</div> |
| | | <div className="footer"> |
| | | <Button key="cancel" onClick={() => { this.setState({ visible: false })}}>取消</Button> |
| | | <Button key="pre" type="primary" loading={preconfirming} onClick={this.preVersion}>上一版本</Button> |
| | | <Button key="next" type="primary" loading={nextconfirming} onClick={this.nextVersion}>下一版本</Button> |
| | | <Button key="cancel" onClick={() => { this.setState({ visible: false })}}>取消</Button> |
| | | </div> |
| | | </Modal> |
| | | </div> |