fix: 修复封装的axios请求过快beforeRequestCallback只触发一次

This commit is contained in:
xiaoxian521 2021-10-29 15:37:48 +08:00
parent 769e684c61
commit 3389f3118a

View File

@ -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) {