javascript - Page jump in vue-router
迷茫
迷茫 2017-05-18 11:03:02
0
2
771

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

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
过去多啦不再A梦

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

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template