mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 17:07:19 +08:00
fix: 修复封装的axios请求过快beforeRequestCallback只触发一次
This commit is contained in:
parent
769e684c61
commit
3389f3118a
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user