Enable vue/return-in-computed-property and add explicit fallback returns

Co-Authored-By: Codex <codex@openai.com>
This commit is contained in:
2026-03-08 12:39:11 +08:00
parent 1bf8355092
commit c88646eba3
5 changed files with 7 additions and 2 deletions

View File

@@ -195,6 +195,7 @@ const caseData = computed(() => {
});
return data;
}
return [];
});
const columnData = computed(() => {

View File

@@ -428,8 +428,9 @@ const valueData = computed(() => {
item.type === selectedAttName.value.type &&
item.key === selectedAttName.value.key,
);
return data;
return data ?? null;
}
return null;
});
// Compute slider data; time format: millisecond timestamps

View File

@@ -177,6 +177,8 @@ const disabledSave = computed(() => {
return !(
conformanceFilterTempCheckId.value || conformanceLogTempCheckId.value
);
default:
return true;
}
});

View File

@@ -560,6 +560,7 @@ const allFiles = computed(() => {
);
return sortFiles;
}
return [];
});
/**