fix: errorHandler 的顺序控制问题'

This commit is contained in:
winixt 2022-06-16 11:01:54 +08:00
parent cf3720320d
commit 9e7999f3c1

View File

@ -102,7 +102,7 @@ function getCustomerHandler(ctx, options = {}) {
const { dataHandler, errorHandler } = ctx; const { dataHandler, errorHandler } = ctx;
return { return {
dataHandler: options.dataHandler || dataHandler, dataHandler: options.dataHandler || dataHandler,
errorHandler: errorHandler || options.errorHandler, errorHandler: options.errorHandler || errorHandler,
}; };
} }