This commit is contained in:
2026-08-20 18:02:52 +08:00
parent 4ae5e7c672
commit 80947cd9ce
65 changed files with 1386 additions and 1083 deletions
@@ -0,0 +1,7 @@
import { getApiErrorDetails } from '@/shared/api/http'
export function masterDataErrorMessage(error: unknown, fallback: string) {
const details = getApiErrorDetails(error, fallback)
const reference = details.requestId || details.traceId
return reference ? `${details.message}(请求标识:${reference})` : details.message
}