Skip to content

Commit

Permalink
fix: when middleware config options is undefined, options.match (#670)
Browse files Browse the repository at this point in the history
Co-authored-by: Harry Chen <[email protected]>
  • Loading branch information
tkvern and czy88840616 authored Oct 13, 2020
1 parent 6a381a2 commit 1893049
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class AppBootHook {
this.app.use(mwIns);
} else {
// egg
const options = this.app.config[name];
if (options && options.enable === false) {
const options = this.app.config[name] || {};
if (options.enable === false) {
continue;
}
// support options.match and options.ignore
Expand Down

0 comments on commit 1893049

Please sign in to comment.