Skip to content

Commit

Permalink
perf(utils): 用apply代替call
Browse files Browse the repository at this point in the history
  • Loading branch information
jiawei397 committed Sep 27, 2021
1 parent 08c896d commit 9d8fd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function overrideFnByGuard(
}
}
await transferParam(target, methodName, args);
const result = await fn.call(target, ...args);
const result = await fn.apply(target, args);
transResponseResult(context, result);
return result;
} catch (e) {
Expand Down

0 comments on commit 9d8fd69

Please sign in to comment.