fix(测试计划): 修复切换分页数据问题导致分页不展示紧急bug
This commit is contained in:
parent
4b73409232
commit
5bf2f5295a
|
@ -204,7 +204,7 @@
|
||||||
function getCaseLevel(record: TableData) {
|
function getCaseLevel(record: TableData) {
|
||||||
if (record.customFields && record.customFields.length) {
|
if (record.customFields && record.customFields.length) {
|
||||||
const caseItem = record.customFields.find((item: any) => item.fieldName === '用例等级' && item.internal);
|
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;
|
return undefined;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1472,9 +1472,6 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
onBeforeMount(() => {
|
onBeforeMount(() => {
|
||||||
if (route.query.id) {
|
|
||||||
openDetail(route.query.id as string);
|
|
||||||
}
|
|
||||||
fetchData();
|
fetchData();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue