方法一:
<router-link to="./home"></router-link>
方法二:
@click="my"点击
<el-menu-item index="4" @click="my"
>订单管理</el-menu-item
>
下面定义方法:
methods: {
my:function(){
this.$router.push({path:'/my'});
}
}
标签:function,vue,methods,定义方法,跳转,my,路由
来源: https://www.cnblogs.com/wencaiguagua/p/15620560.html