fix: 页面刷新projectId为空
This commit is contained in:
parent
52ef34c78b
commit
6a45fe5f57
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue