diff --git a/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java b/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java index 71cd6feab3..ffa952518b 100644 --- a/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java +++ b/backend/src/main/java/io/metersphere/excel/listener/TestCaseNoModelDataListener.java @@ -511,7 +511,6 @@ public class TestCaseNoModelDataListener extends AnalysisEventListener stringStream = Arrays.stream(values.split("[,;,;]")); //当标签值以中英文的逗号和分号分隔时才能正确解析 + List valueList = stringStream.map(multip -> multip = "\"" + multip + "\"") + .collect(Collectors.toList()); + String modifiedValues = StringUtils.join(valueList, ","); + modifiedValues = "[" + modifiedValues + "]"; + return modifiedValues; + } else { + return "[]"; + } + } + } + /** * @description: 获取注解里ExcelProperty的value */ diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index d4ba2dd21f..22bcf31a9c 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -9,7 +9,7 @@