I have a page 1. Clicking a button on page 1 pops up a new page 2. Clicking a button on the new page 2 pops up a new page 3. I wrote these three pages into a vue In the file, it is still implemented using routing. If it is implemented using routing, how to implement it?
淡淡烟草味2017-05-19 10:39:58
Method 1, for example
/a
/b
/c
For these three routes, you can bind your .vue
的组件页面,然后在这个组件页面里面,通过路由对象下面的路由对象的path
或者name
attribute to all three routes to determine the processing and display of different pages 123.
Method 2: You can also use a route, for example /a?type=1
, this one has a different type. You can display different pages by judging the query of the routing object. 123