urlObj = { name: 'vod-seriesVvDetail', params : { pid: id, channel: data[i].cid, pname: name, isMpp: data[i].isMpp, time: paramFactory.getTime(), dateNum: paramFactory.getDateNum(), terminal: paramFactory.getTerminal(), playType: paramFactory.getPlayType() } } url =
<a v-link="{name: ${name}, params: ${urlObj.params}}">${name}</a>
在js里面拼出来url,然后渲染出来的结果是:
<a v-link="{name: 标题测试, params: [object Object]}">标题测试</a>
请问有什么办法能传递对象给v-link吗? 这样就不用拼这么长的url了