diff --git a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java index cd73aff7d2..9eb1552251 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiAutomationService.java @@ -1649,7 +1649,7 @@ public class ApiAutomationService { item.setName(item.getName().substring(0, 255)); } item.setNum(num++); - if (BooleanUtils.isTrue(project.getScenarioCustomNum())) { + if (BooleanUtils.isTrue(project.getScenarioCustomNum()) && StringUtils.isBlank(item.getCustomNum())) { item.setCustomNum(String.valueOf(num)); } importCreate(item, batchMapper, request); diff --git a/frontend/src/business/components/track/case/components/TestCaseList.vue b/frontend/src/business/components/track/case/components/TestCaseList.vue index 262fbb43b1..643220b09b 100644 --- a/frontend/src/business/components/track/case/components/TestCaseList.vue +++ b/frontend/src/business/components/track/case/components/TestCaseList.vue @@ -32,8 +32,7 @@ min-width="80"/>