普通跳转

<a-menu-item @click="lookSms"><a>查看详情</a></a-menu-item>
lookSms() {
    this.$router.push(`/marketing/smsInfo/`);
},

带id跳转

<a-menu-item @click="lookSms(sms.id)"><a>查看详情</a></a-menu-item>
lookSms(id) {
    this.$router.push(`/marketing/smsInfo/${id}`);
},
//接收id
activated() {
    this.$route.params.id
},

 

发表评论

电子邮件地址不会被公开。 必填项已用*标注