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

this.$router.push({

      path: '/路径'

                })

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

 this.$router.go(-1)

 

 

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

 

Logo

前往低代码交流专区

更多推荐