From c072bbec8c78cc672de7dcbdb3ad00db7fea1b4b Mon Sep 17 00:00:00 2001 From: pmc <740076875@qq.com> Date: Fri, 8 May 2026 11:03:08 +0800 Subject: [PATCH] =?UTF-8?q?feat(01-01):=20lib/api/index.ts=20=E6=9C=AB?= =?UTF-8?q?=E5=B0=BE=E8=BF=BD=E5=8A=A0=E5=87=AD=E6=8D=AE=E6=A7=BD=E4=BD=8D?= =?UTF-8?q?=E5=85=B7=E5=90=8D=20re-export?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 handleApiError 之后追加 7 行具名 re-export 块 - 暴露 4 个公共符号:getCredentialSlot / updateCredentialSlot / CredentialSlot / CredentialSlotUpdatePayload - 路径相对 './credential-slot',与现有 export * from './card' 等风格在同文件混用合法 - 现有 export */usersApi/rolesApi/handleApiError 完全不变 --- qy-lty-admin/lib/api/index.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qy-lty-admin/lib/api/index.ts b/qy-lty-admin/lib/api/index.ts index 98d9fd1..ca35957 100644 --- a/qy-lty-admin/lib/api/index.ts +++ b/qy-lty-admin/lib/api/index.ts @@ -194,3 +194,11 @@ export const handleApiError = (error: any) => { } return "发生未知错误,请重试" } + +// 凭据槽位(Milestone v1.0 通用凭据槽位前端集成 — Phase 1 / CRED-FE-01) +export { + getCredentialSlot, + updateCredentialSlot, + type CredentialSlot, + type CredentialSlotUpdatePayload, +} from './credential-slot'