0
这是aa.vue组件,跳转至bb.vue组件
<div class = "layer">
    <span v-link="{ name: 'report', params: { userId: 123 }}">拥堵排名</span>
    <span class = "setwin">
        <a href="javascript:;" @click = "isLeftBar = false">
            <cite></cite>
        </a>
        <a href="javascript:;"></a>
    </span>
</div>

这是bb.vue

route:{
    data(transition){
        console.log(transition)
    }
}
transition 里面params为空!求助各位

1个回答

1

已采纳

通过this.$route.params.userId能拿到啊

撰写答案