search

Home  >  Q&A  >  body text

javascript - Can the vue popup layer be implemented using routing?

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?

黄舟黄舟2790 days ago728

reply all(1)I'll reply

  • 淡淡烟草味

    淡淡烟草味2017-05-19 10:39:58

    Method 1, for example

    /a
    /b
    /c

    For these three routes, you can bind your .vue的组件页面,然后在这个组件页面里面,通过路由对象下面的路由对象的path或者nameattribute 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

    reply
    0
  • Cancelreply