feat: 封装下载hooks

This commit is contained in:
xlsea
2024-09-05 11:06:30 +08:00
parent 824974e904
commit 0c3ea2dc86
11 changed files with 222 additions and 19 deletions

View File

@ -6,3 +6,10 @@ export const yesOrNoRecord: Record<CommonType.YesOrNo, App.I18n.I18nKey> = {
};
export const yesOrNoOptions = transformRecordToOption(yesOrNoRecord);
export const errorCodeRecord: Record<CommonType.ErrorCode, string> = {
'401': '认证失败,无法访问系统资源',
'403': '当前操作没有权限',
'404': '访问资源不存在',
default: '系统未知错误,请反馈给管理员'
};