提交 6a45fe5f 编写于 作者: C chenjianxing

fix: 页面刷新projectId为空

上级 52ef34c7
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册