首页 > 其他 > 详细

vue路由跳转

时间:2019-05-29 16:32:57      阅读:109      评论:0      收藏:0      [点我收藏+]

通过点击事件来进行路由跳转。 this.$router.push(‘路径‘);

例如:

this.$router.push(‘/personal_cneter/buyer/customer_service_center/children/feedback‘);
 
template代码
<el-button type="primary" @click="goFeedback">点击跳转</el-button>

script代码

 methods: {
    /* 跳转留言反馈*/
    goFeedback() {
    this.$router.push(‘/personal_cneter/buyer/customer_service_center/children/feedback‘)
    },
}

 

 
 

vue路由跳转

原文:https://www.cnblogs.com/Hajar/p/10944534.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!