fix(测试计划): 修复切换分页数据问题导致分页不展示紧急bug

This commit is contained in:
xinxin.wu 2024-06-21 14:20:25 +08:00 committed by Craftsman
parent 4b73409232
commit 5bf2f5295a
2 changed files with 1 additions and 4 deletions

View File

@ -204,7 +204,7 @@
function getCaseLevel(record: TableData) {
if (record.customFields && record.customFields.length) {
const caseItem = record.customFields.find((item: any) => item.fieldName === '用例等级' && item.internal);
return caseItem?.options.find((item: any) => item.value === caseItem?.defaultValue).text;
return caseItem?.options.find((item: any) => item.value === caseItem?.defaultValue)?.text || 'P0';
}
return undefined;
}

View File

@ -1472,9 +1472,6 @@
);
onBeforeMount(() => {
if (route.query.id) {
openDetail(route.query.id as string);
}
fetchData();
});