通过javascript直接跳转到相关页面
可以直接是字符串,也可以是对象,也可以用命名路由(在路由配置时做好路由的命名)
this.$router.push('news')
this.$router.push({path:'news'})
this.$router.push({name:'news'})
通过javascript直接跳转到相关页面
可以直接是字符串,也可以是对象,也可以用命名路由(在路由配置时做好路由的命名)
this.$router.push('news')
this.$router.push({path:'news'})
this.$router.push({name:'news'})