想实现点击href区域动态跳转到detail页面,没有报错也没有跳转,只有点击时颜色变化。把跳转路径换成pages里的也不行,换成baidu路径也没效果。
这个<a href到底咋写啊,有没有踩过坑的dalao来救我一下
template:
<template>
<a :href="detailUrl">
<div class="comment-card">
.......
</div>
</a>
</template>
script:
computed:{
detailUrl(){
return '/pages/detail/main?id='+this.comment.id
}
},