Skip to content

Commit d927159

Browse files
committed
remove unnecessary el setting in keep-alive
1 parent efb6035 commit d927159

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/core/components/keep-alive.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ export default {
1717
? opts.Ctor.cid + '::' + opts.tag
1818
: vnode.key
1919
if (this.cache[key]) {
20-
const child = vnode.child = this.cache[key].child
21-
vnode.elm = this.$el = child.$el
20+
vnode.child = this.cache[key].child
2221
} else {
2322
this.cache[key] = vnode
2423
}

0 commit comments

Comments
 (0)