Return null instead of undefined on 404 in conformance trace detail methods

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 18:33:17 +08:00
parent f69eb6ac15
commit ba360120de

View File

@@ -347,7 +347,7 @@ export const useConformanceStore = defineStore("conformanceStore", {
} catch (error) { } catch (error) {
if (error.response?.status === 404) { if (error.response?.status === 404) {
this.infinite404 = 404; this.infinite404 = 404;
return; return null;
} }
apiError( apiError(
error, error,
@@ -387,7 +387,7 @@ export const useConformanceStore = defineStore("conformanceStore", {
} catch (error) { } catch (error) {
if (error.response?.status === 404) { if (error.response?.status === 404) {
this.infinite404 = 404; this.infinite404 = 404;
return; return null;
} }
apiError( apiError(
error, error,