Skip to content

Commit f4b66bf

Browse files
committed
also set parentView in keep-alive mode
1 parent 057163e commit f4b66bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pipeline.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export function activate (view, transition, depth, cb, reuse) {
171171
if (cachedViews) {
172172
transition.router._views = cachedViews.concat(transition.router._views)
173173
view.childView = cachedViews[cachedViews.length - 1]
174+
view.childView.parentView = view
174175
component._routerViews = null
175176
}
176177
}

0 commit comments

Comments
 (0)