Merge remote-tracking branch 'origin/develop' into feat/optimize
# Conflicts: # frontend/src/lib/errors.ts
This commit is contained in:
@@ -3,8 +3,6 @@
|
||||
// 来源:docs/03-接口文档.md §五 错误码
|
||||
// ============================================================
|
||||
|
||||
// ErrorCode type reserved for future use
|
||||
|
||||
/** 将错误码转为用户友好文案(需要传入翻译函数) */
|
||||
export function getErrorMessage(code: string, translate: (key: string) => string): string {
|
||||
const key = `error.${code}`;
|
||||
|
||||
Reference in New Issue
Block a user