From 6a45fe5f575b85eb33d6eb06f95b09e80434c51a Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 25 Mar 2021 09:49:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0proj?= =?UTF-8?q?ectId=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/excel/listener/TestCaseDataListener.java | 2 +- frontend/src/business/components/common/head/SearchList.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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;