diff --git a/src/core/components/keep-alive.js b/src/core/components/keep-alive.js index 3f6e7af45ff..eb79b1f8fa6 100644 --- a/src/core/components/keep-alive.js +++ b/src/core/components/keep-alive.js @@ -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 }