From 0bcb5e7f4acc67538d1f7813b7f76f071db6e8dd Mon Sep 17 00:00:00 2001 From: ZF sun <34314687@qq.com> Date: Tue, 21 Jul 2026 09:33:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(common/js/diy.js):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=A4=84=E7=90=86=E4=B8=AD=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E9=94=99=E8=AF=AFkey=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将diyErrorKey替换为httpErrorKey来适配HTTP状态码错误处理逻辑 --- common/js/diy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/js/diy.js b/common/js/diy.js index dc1be9b..2304d47 100644 --- a/common/js/diy.js +++ b/common/js/diy.js @@ -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 后面