diff --git a/src/core/components/keep-alive.js b/src/core/components/keep-alive.js index 19df604d..8810ded2 100644 --- a/src/core/components/keep-alive.js +++ b/src/core/components/keep-alive.js @@ -28,7 +28,7 @@ export default { if (vnode && vnode.componentOptions) { const opts: VNodeComponentOptions = vnode.componentOptions // check pattern - const name = opts.tag || opts.Ctor.options.name + const name = opts.Ctor.options.name || opts.tag if (name && ( (this.include && !matches(this.include, name)) || (this.exclude && matches(this.exclude, name))