diff --git a/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java b/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java index 0e5bf1d6ae..9397a20ef9 100644 --- a/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java +++ b/backend/src/main/java/io/metersphere/excel/listener/TestCaseDataListener.java @@ -73,7 +73,7 @@ public class TestCaseDataListener extends EasyExcelListener { if (dbExist) { // db exist - stringBuilder.append(Translator.get("test_case_already_exists_excel") + ":" + data.getName() + "; "); + stringBuilder.append(Translator.get("test_case_already_exists") + ":" + data.getName() + "; "); } else { // @Data 重写了 equals 和 hashCode 方法 excelExist = excelDataList.contains(data); diff --git a/frontend/src/business/components/common/head/SearchList.vue b/frontend/src/business/components/common/head/SearchList.vue index 18bf669961..d8e05c4109 100644 --- a/frontend/src/business/components/common/head/SearchList.vue +++ b/frontend/src/business/components/common/head/SearchList.vue @@ -64,7 +64,6 @@ export default { }, methods: { init: function () { - this.$store.commit('setProjectId', undefined); if (hasRoles(ROLE_TEST_VIEWER, ROLE_TEST_USER, ROLE_TEST_MANAGER)) { this.result = this.$get("/project/listAll", response => { this.items = response.data;