Skip to content

Commit bb6089c

Browse files
committed
adjust keep-alive name matching priority
1 parent cc4f4c5 commit bb6089c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/components/keep-alive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
if (vnode && vnode.componentOptions) {
2929
const opts: VNodeComponentOptions = vnode.componentOptions
3030
// check pattern
31-
const name = opts.tag || opts.Ctor.options.name
31+
const name = opts.Ctor.options.name || opts.tag
3232
if (name && (
3333
(this.include && !matches(this.include, name)) ||
3434
(this.exclude && matches(this.exclude, name))

0 commit comments

Comments
 (0)