fix: 页面刷新projectId为空

This commit is contained in:
chenjianxing 2021-03-25 09:49:34 +08:00
parent 52ef34c78b
commit 6a45fe5f57
2 changed files with 1 additions and 2 deletions

View File

@ -73,7 +73,7 @@ public class TestCaseDataListener extends EasyExcelListener<TestCaseExcelData> {
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);

View File

@ -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;