0
点赞
收藏
分享

微信扫一扫

用el-button实现路由跳转

1.el-button绑定点击事件

<el-button type="primary" @click="Jump" class="detailed">跳转</el-button>

2.在methods内写入方法

<script>
export default {

methods: {
  jump () {
      this.$router.push('/页面地址')
    }
}

}
</script>
举报

相关推荐

0 条评论