fix(测试跟踪):修复切换页面导致表单id字段显示不正确问题

--bug=1026115 --user=王旭 [测试跟踪]github#24334开启功能用例自定义ID后,切换功能用例列表页面,用例ID有时候是自定义ID,有时候是默认ID https://www.tapd.cn/55049933/s/1371029
This commit is contained in:
WangXu10 2023-05-12 11:39:18 +08:00 committed by fit2-zhao
parent 47ad7a1c2a
commit 4051eb1097
1 changed files with 13 additions and 1 deletions

View File

@ -580,6 +580,7 @@ export default {
//
return;
}
this.getProject();
this.getTemplateField();
let ids = this.$route.params.ids;
if (ids) {
@ -1217,7 +1218,18 @@ export default {
});
}
},
generateColumnKey
generateColumnKey,
getProject() {
getProjectApplicationConfig('CASE_CUSTOM_NUM')
.then(result => {
let data = result.data;
if (data && data.typeValue === 'true') {
store.currentProjectIsCustomNum = true;
} else {
store.currentProjectIsCustomNum = false;
}
});
},
}
};
</script>