fix(keep-alive): higher priority for exclude than include (#6905)

This commit is contained in:
lucien 2017-10-25 12:44:54 +08:00 committed by Evan You
parent 048e940779
commit 604230fe95

View File

@ -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
}