fix(测试用例): 计划Tab页空数据时报错提示

--bug=1044837 --user=宋昌昌 【测试用例】用例详情-用例未关联计划-点击测试计划标签报错 https://www.tapd.cn/55049933/s/1559719
This commit is contained in:
song-cc-rock 2024-08-07 17:16:56 +08:00 committed by Craftsman
parent e6613455fd
commit ec07c38eb1
1 changed files with 3 additions and 1 deletions

View File

@ -215,8 +215,10 @@
(val) => {
if (val) {
const selectedPlanIds: (string | undefined)[] = propsRes.value.data.map((e) => e.testPlanId) || [];
if (selectedPlanIds && selectedPlanIds.length > 0) {
getStatistics(selectedPlanIds);
}
}
},
{
deep: true,