vue路由跳转
时间:2019-05-29 16:32:57
收藏:0
阅读:110
通过点击事件来进行路由跳转。 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‘) }, }
原文:https://www.cnblogs.com/Hajar/p/10944534.html
评论(0)