From 0cc0f6d9c1c6098aa8bf1a6fa126df97e784034b Mon Sep 17 00:00:00 2001 From: gzy <1370682505@qq.com> Date: Thu, 5 Sep 2024 15:04:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XinAoDTS/fuintAdmin/src/utils/request.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/XinAoDTS/fuintAdmin/src/utils/request.js b/XinAoDTS/fuintAdmin/src/utils/request.js index 34f7eca..e50dfaf 100644 --- a/XinAoDTS/fuintAdmin/src/utils/request.js +++ b/XinAoDTS/fuintAdmin/src/utils/request.js @@ -65,11 +65,11 @@ function stripObjectOfSpecialCharsAndCheck(obj,url) { } // request拦截器 service.interceptors.request.use(config => { - let isHave = stripObjectOfSpecialCharsAndCheck(config.data,config.url) - if(!isHave){ - alert('禁止输入特殊符号') - return - }else{ + // let isHave = stripObjectOfSpecialCharsAndCheck(config.data,config.url) + // if(!isHave){ + // alert('禁止输入特殊符号') + // return + // }else{ // 是否需要防止数据重复提交 const isRepeatSubmit = (config.headers || {}).repeatSubmit === false @@ -110,7 +110,7 @@ service.interceptors.request.use(config => { } } return config - } + // } }, error => { console.log(error) Promise.reject(error)