search

Home  >  Q&A  >  body text

javascript - How to record the history of paging in vue

LikesegmentfaultAfter clicking on the page here, it will return to the previous page.
For example, your URL is http:localhost:8080You click on page 2 When using history.pushState
the page becomes http:localhost:8080/page=1
but there will be problems when clicking back or previous session because I don’t have How to set the path with page=1 in the routing?

黄舟黄舟2743 days ago451

reply all(1)I'll reply

  • 阿神

    阿神2017-05-18 11:04:21

    Then just add it in the route

    reply
    0
  • Cancelreply