fix(common/js/diy.js): 修正错误处理中使用的错误key函数

将diyErrorKey替换为httpErrorKey来适配HTTP状态码错误处理逻辑
This commit is contained in:
2026-07-21 09:33:48 +08:00
parent 3a88941828
commit 0bcb5e7f4a

View File

@@ -332,7 +332,7 @@ export default {
// 服务端明确返回的业务消息(字符串):直接透传
if (info.type === 'business') return info.raw;
const key = diyErrorKey(info.type);
const key = httpErrorKey(info.type);
let reason = this.$lang(key);
// HTTP 状态码类错误:把 statusCode 拼到 reason 后面