提交 2143145d 编写于 作者: fxy060608's avatar fxy060608

fix(core): interceptor

上级 33004b11
......@@ -97,7 +97,7 @@ function queue (hooks, data) {
for (let i = 0; i < hooks.length; i++) {
const hook = hooks[i]
if (promise) {
promise = Promise.then(wrapperHook(hook))
promise = Promise.resolve(wrapperHook(hook))
} else {
const res = hook(data)
if (isPromise(res)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册