Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

vue-router

> 前端框架
Open source

🚦 The official router for Vue 2

18.9K stars0 likes3 views
WebsiteGitHub

About

🚦 The official router for Vue 2

vue-router

This is vue-router 3.0 which works only with Vue 2.0. and both have reached end of life.

  • For the 1.x router see the 1.0 branch.
  • For Vue Router 4 (for Vue 3) see vuejs/router.

Supporting Vue Router

Vue Router is part of the Vue Ecosystem and is an MIT-licensed open source project with its ongoing development made possible entirely by the support of Sponsors. If you would like to become a sponsor, please consider:

  • Become a Sponsor on GitHub
  • One-time donation via PayPal

Gold Sponsors

</picture>

Silver Sponsors

</picture>
</picture>

Bronze Sponsors

</picture>
</picture>
</picture>
</picture>


Get started with the documentation, or play with the examples (see how to run them below).

Development Setup

bash
# install deps
yarn

# build dist files
yarn build

# serve examples at localhost:8080
yarn dev

# lint & run all tests
yarn test

# serve docs at localhost:8080
yarn docs

Releasing

  • yarn run release
    • Ensure tests are passing yarn run test
    • Build dist files VERSION=<the_version> yarn run build
    • Build changelog yarn run changelog
    • Commit dist files git add dist CHANGELOG.md && git commit -m "[build $VERSION]"
    • Publish a new version `npm version $VERSION --message "[release] $VERSION"
    • Push tags git push origin refs/tags/v$VERSION && git push
    • Publish to npm npm publish

Questions

For questions and support please use the Discord chat server or the official forum. The issue list of this repo is exclusively for bug reports and feature requests.

Issues

Please make sure to read the Issue Reporting Checklist before opening an issue. Issues not conforming to the guidelines may be closed immediately.

Contribution

Please make sure to read the Contributing Guide before making a pull request.

Changelog

Details changes for each release are documented in the CHANGELOG.md file.

Stay In Touch

  • For latest releases and announcements, follow on Twitter: @vuejs

License

MIT

Copyright (c) 2013-present Evan You

Special Thanks

Special thanks to BrowserStack for letting the maintainers use their service to debug browser specific issues.

Issues· 125 open

View all issuesOpen on GitHub
  • #3946

    Redirecting to external hosts possible with backslash character (browser-side open redirect)

    Updated Mar 21, 2026
  • #3945

    Redirected when going from "/login" to "/dashboard" via a navigation guard.

    Updated Mar 10, 2026
  • #2648

    Allow defining an inactive-class

    feature requestdiscussionhas PRgroup[router-link redesign]needs RFCUpdated Jan 12, 2026
  • #1532

    Versions in docs

    docsUpdated Dec 27, 2025
  • #3936

    Add `target` param to route hooks

    Updated Sep 2, 2025
  • #3935

    How to get the currently matching path

    Updated Sep 1, 2025
  • #3027

    Add onComplete & onAbort to router-link

    discussionfixed on 4.xneeds RFCUpdated Jul 15, 2025
  • #3167

    Better error message Component type is invalid

    improvementfixed on 4.xUpdated Jul 15, 2025
  • #2758

    Creating a type declaration for `next`

    Typescripthas PRfixed on 4.xUpdated Jul 15, 2025
  • #2478

    component seems to be destroyed incorrectly

    keep-alivefixed on 4.xUpdated Jul 15, 2025

> Tags

JavaScriptjavascriptroutervue

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 1, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架