VUE 中指定页面跳转
在vue中如果你嫌vue-router页面跳转不好用你可以这么写this.$router.push({ path: '/路径' })甚至还可以直接返回上一层(改变-1为0还可以达到页面刷新的效果) this.$router.go(-1) 友情提示:纯自己瞎悟但真实好用 ...
·
在vue中如果你嫌vue-router页面跳转不好用你可以这么写
this.$router.push({
path: '/路径'
})
甚至还可以直接返回上一层(改变-1为0还可以达到页面刷新的效果)
this.$router.go(-1)
友情提示:纯自己瞎悟但真实好用
更多推荐
已为社区贡献5条内容
所有评论(0)