king
2021-09-07 da9942cd74b890c8533f475e7b333105c2358f0a
src/menu/versions/index.jsx
@@ -64,7 +64,7 @@
        notification.success({
          top: 92,
          message: '执行成功。',
          duration: 2
          duration: 1
        })
        if (updateConfig) {
@@ -72,7 +72,7 @@
        } else {
          setTimeout(() => {
            window.location.reload()
          }, 2000)
          }, 1000)
        }
      }
    })
@@ -110,7 +110,7 @@
        notification.success({
          top: 92,
          message: '执行成功。',
          duration: 2
          duration: 1
        })
        
        if (updateConfig) {
@@ -118,7 +118,7 @@
        } else {
          setTimeout(() => {
            window.location.reload()
          }, 2000)
          }, 1000)
        }
      }
    })
@@ -143,9 +143,9 @@
          <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>