Skip to content

vue-router路由跳转错误 , NavigationDuplicated #16

@daisybaicai

Description

@daisybaicai

image

在router声明的地方加上catch

const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
  return originalPush.call(this, location).catch(err => err)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions