完成基础信息与开票的逻辑

This commit is contained in:
BBIT-Kai
2026-05-11 09:31:23 +08:00
parent 3bbd8941a9
commit 4b23f3546a
37 changed files with 4975 additions and 538 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ http.interceptors.response.use(
return response.data
}
if (payload.code !== '0') {
throw new BizError(payload.code, payload.message || '请求失败', payload.traceId ?? traceId)
const errMsg = payload.message || '请求失败'
message.error(payload.traceId ?? traceId ? `${errMsg}(追踪ID${payload.traceId ?? traceId}` : errMsg)
throw new BizError(payload.code, errMsg, payload.traceId ?? traceId)
}
return payload.data
},