This commit is contained in:
Captain.B 2020-03-05 19:21:04 +08:00
parent a6ee8d4fc0
commit e7fa92bdde
1 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@
<el-input-number
placeholder=""
:min="1"
:max="Math.min(threadNumber, duration)"
:max="Math.min(threadNumber, rampUpTime)"
v-model="step"
@change="calculateChart"
size="mini"/>
@ -164,8 +164,8 @@
if (this.duration < this.rampUpTime) {
this.rampUpTime = this.duration;
}
if (this.threadNumber < this.step) {
this.step = this.threadNumber;
if (this.rampUpTime < this.step) {
this.step = this.rampUpTime;
}
this.orgOptions = {
xAxis: {