From 716edb33b79c51acd0264d8b61e74c52b3c39e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Mon, 9 Mar 2026 23:38:13 +0800 Subject: [PATCH] Initialize result to null and remove redundant await in MoreModal switchCaseData Co-Authored-By: Claude Opus 4.6 --- src/components/Discover/Conformance/MoreModal.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Discover/Conformance/MoreModal.vue b/src/components/Discover/Conformance/MoreModal.vue index 8601ea9..85ae803 100644 --- a/src/components/Discover/Conformance/MoreModal.vue +++ b/src/components/Discover/Conformance/MoreModal.vue @@ -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 } /**