Explorar o código

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

xiaoxian521 %!s(int64=3) %!d(string=hai) anos
pai
achega
3389f3118a
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/utils/http/core.ts

+ 0 - 1
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) {