mirror of
https://gitee.com/vuejs/vue.git
synced 2024-11-30 11:07:51 +08:00
fix(keep-alive): higher priority for exclude than include (#6905)
This commit is contained in:
parent
048e940779
commit
604230fe95
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user