VUE 中指定页面跳转

在vue中如果你嫌vue-router页面跳转不好用你可以这么写

this.$router.push({

      path: '/路径'

                })

甚至还可以直接返回上一层(改变-1为0还可以达到页面刷新的效果)

 this.$router.go(-1)

友情提示:纯自己瞎悟但真实好用

猜你喜欢

转载自blog.csdn.net/weixin_42507803/article/details/82148479