fix: 手部诊断关闭弹窗或切换项目后忽略过期响应

This commit is contained in:
GouJ committed 2026-10-15 19:42:00 +08:00
1 parent 5d9cbe1ba0
commit 620b4b1aea
1 file changed
+2 -2
+2 -2
View File
@@ -42,9 +42,9 @@ async function loadHandDiagnostics(id: string) {
handDiagnostics.value = null
try {
const data = await breakdownApi.handOccupancyDiagnostics(id)
if (version === handDiagnosticsVersion) handDiagnostics.value = data
if (version === handDiagnosticsVersion && toolsOpen.value && projectId.value === id) handDiagnostics.value = data
} catch (cause) {
if (version === handDiagnosticsVersion) actionMessage?.error(errorMessage(cause))
if (version === handDiagnosticsVersion && toolsOpen.value && projectId.value === id) actionMessage?.error(errorMessage(cause))
} finally {
if (version === handDiagnosticsVersion) handDiagnosticsBusy.value = false
}