From 3389f3118a3c12e5f775a200b520bc70f9c68f53 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 29 Oct 2021 15:37:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=B0=81=E8=A3=85?= =?UTF-8?q?=E7=9A=84axios=E8=AF=B7=E6=B1=82=E8=BF=87=E5=BF=ABbeforeRequest?= =?UTF-8?q?Callback=E5=8F=AA=E8=A7=A6=E5=8F=91=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/http/core.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/utils/http/core.ts b/src/utils/http/core.ts index 86d757197..3d3413767 100644 --- a/src/utils/http/core.ts +++ b/src/utils/http/core.ts @@ -128,7 +128,6 @@ class EnclosureHttp { // 优先判断post/get等方法是否传入回掉,否则执行初始化设置等回掉 if (typeof this.beforeRequestCallback === "function") { this.beforeRequestCallback($config); - this.beforeRequestCallback = undefined; return $config; } if (EnclosureHttp.initConfig.beforeRequestCallback) {