Skip to content

Commit

Permalink
fix(keep-alive): higher priority for exclude than include (#6905)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteyumiko authored and yyx990803 committed Oct 25, 2017
1 parent 048e940 commit 604230f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/components/keep-alive.js
Expand Up @@ -87,8 +87,8 @@ export default {
// check pattern
const name: ?string = getComponentName(componentOptions)
if (name && (
(this.include && !matches(this.include, name)) ||
(this.exclude && matches(this.exclude, name))
(this.exclude && matches(this.exclude, name)) ||
(this.include && !matches(this.include, name))
)) {
return vnode
}
Expand Down

0 comments on commit 604230f

Please sign in to comment.