Skip to content

How to maximize the reuse of code in beforeRouteEnter and beforeRouteUpdate #2115

Closed
@rubyLiuqq

Description

@rubyLiuqq

Version
3.0.1

Reproduction link
https://github.com/vuejs/vue-router/blob/dev/src/util/push-state.js#L44

Steps to reproduce
Run application into iframe

What is expected?
Please, add the way to setup window.top in VueRouter

What is actually happening?
const history = window.history
is used
should be way to use
const history = window.top.history
via some flag

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions