diff --git a/frontend/src/business/components/track/case/components/TestCaseEdit.vue b/frontend/src/business/components/track/case/components/TestCaseEdit.vue index e43b8a8e06..68f97a0619 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEdit.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEdit.vue @@ -176,6 +176,12 @@ icon="el-icon-plus" circle size="mini" @click="handleAddStep(scope.$index, scope.row)"> + { + if (step.num > data.num) { + step.num++; + } + }); + this.form.steps.splice(index + 1, 0, step); + }, handleDeleteStep(index, data) { this.form.steps.splice(index, 1); this.form.steps.forEach(step => {