Skip to content

Commit

Permalink
chore(h5): 当 API 调用失败时不再强制 console.error,#6984
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj authored and ZakaryCode committed Mar 31, 2023
1 parent c0f5262 commit 35ca6b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/taro-h5/src/utils/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ export class MethodHandler<T = Partial<TaroGeneral.CallbackResult>> {
} else {
res.errMsg = `${this.methodName}:fail ${res.errMsg}`
}
if (process.env.NODE_ENV !== 'production') {
console.error(res.errMsg)
}
isFunction(this.__fail) && this.__fail(res)
isFunction(this.__complete) && this.__complete(res)

Expand Down

0 comments on commit 35ca6b8

Please sign in to comment.