search

Home  >  Q&A  >  body text

javascript - Page jump in vue-router

I want to jump directly to another route, such as http://localhost:8080/login to http://localhost:8080/admin page
I want to jump to a page in methods similar to js window .location kind of
code screenshot:

Console screenshot:

push method and go method cannot be found

迷茫迷茫2772 days ago719

reply all(2)I'll reply

  • 过去多啦不再A梦

    过去多啦不再A梦2017-05-18 11:05:02

    You can use this.$router.push({path:‘/path’})

    reply
    0
  • 怪我咯

    怪我咯2017-05-18 11:05:02

    It seems to have been upgraded https://cn.vuejs.org/v2/guide... Changes

    reply
    0
  • Cancelreply