Explorar el Código

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

xiaoxian521 hace 3 años
padre
commit
3389f3118a
Se han modificado 1 ficheros con 0 adiciones y 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) {