0. router.go/push介绍:
一句话,用来进行路径跳转的
1. 使用
router.go // 回到上一页首页
this.$router.go(-1) // 回到上一页首页
router.push // 普通的界面跳转(一般用于项目内的路径跳转)
this.$router.push('/')
location.href // 普通的路径跳转(一般用于项目外的路径跳转)
location.href = 'https://element.eleme.cn/'
vue----router.go/push&location.href
阅读 55
2022-02-08
一句话,用来进行路径跳转的
this.$router.go(-1) // 回到上一页首页
this.$router.push('/')
location.href = 'https://element.eleme.cn/'
相关推荐
精彩评论(0)