Initialize result to null and remove redundant await in MoreModal switchCaseData

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 23:38:13 +08:00
parent 1258829c01
commit 716edb33b7

View File

@@ -297,7 +297,7 @@ async function switchCaseData(id) {
maxItems.value = false;
startNum.value = 0;
let result;
let result = null;
if (props.category === "issue")
result = await conformanceStore.getConformanceTraceDetail(
props.listNo,
@@ -310,7 +310,7 @@ async function switchCaseData(id) {
id,
0,
);
infiniteData.value = await result;
infiniteData.value = result;
showTraceId.value = id; // Set after getDetail so the case table finishes loading before switching showTraceId
}
/**