路由跳转
一、 不带参数,name,path都行
//1、html
<router-link :to="{name:'home'}">
<router-link :to="{path:'/home'}">
//2、或js
this.$router.push('/home')
this.$router.push({
name:'home'})
this.
路由跳转
一、 不带参数,name,path都行
//1、html
<router-link :to="{name:'home'}">
<router-link :to="{path:'/home'}">
//2、或js
this.$router.push('/home')
this.$router.push({
name:'home'})
this.