Spring Boot Vue Element entry-combat nine, router routing configuration

This blog belongs to the original author without permission prohibited reproduced, please respect the original! If you have questions, please contact QQ509961766

Since the Vue lack of support in the development of the route, so the official supplement vue-router plug. Vue single-page application is based on and routing component, the routing path for setting access and path map and components together. Traditional application page, with hyperlinks to implement the page switching and jump. Vue-router in the single-page application, switching between the paths is actually the switch assembly. Routing is the SPA (single-page application) path manager. Again popular to say, vue-router link WebApp is our path management systems.

Some small partners have doubts about it, why can not we write as the original link it directly with a label? Because we generally do with Vue are single-page application, there is only one main page index.html, so you write tag does not work, to use vue-router to manage.

Vue Router is Vue.js official route manager. It Vue.js and core depth of integration, so that to build single-page application a breeze. Capabilities include:

  • Nested routing / table view
  • Modular, component-based routing configuration
  • Routing parameters, queries, wildcard
  • Based on the view transition effects Vue.js transition system
  • Fine-grained control navigation
  • CSS class with automatic activation link
  • HTML5 historical patterns or hash mode, automatic demotion in IE9
  • Since the definition of the scroll bar behavior


(A) mounting router


As the authors used vue-cli scaffolding to build the project, the project configuration process used to choose whether the route
(see Spring Boot Vue Element entry-combat (a) VUE development environment to build) ,
if the election

Guess you like

Origin blog.csdn.net/yuyecsdn/article/details/104372913