From 9650b3b4cc621e4e30138e59a9f84b30b2978c6b Mon Sep 17 00:00:00 2001 From: "Mr.T" Date: Sun, 29 Jun 2025 11:22:55 +0800 Subject: [PATCH] =?UTF-8?q?/lang/xxxx.js=3F=E8=AF=B7=E6=B1=82=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E4=B8=8D=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=88=B0=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vol.web/src/api/http.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vol.web/src/api/http.js b/vol.web/src/api/http.js index 2966f0ba0..db9e87501 100644 --- a/vol.web/src/api/http.js +++ b/vol.web/src/api/http.js @@ -326,6 +326,10 @@ function ajax(param) { try { xhr.send(dataStr) } catch (error) { + // 使用正则表达式排除/lang/xxxx.js?的请求 + if (/\/lang\/.*\.js\?/.test(httpParam.url)) { + return console.error('请求异常:', error) + } toLogin() } }