关于vue的问题,求大佬带飞

我用v-for循环了一推数据,在data()里 我想让其中的某一条数据加上router-link to=''的链接应该怎么加呢毕竟我html部分都是框架了

你的这某条数据应该是有特定的标识吧,那完全可以通过这个特定的标识去加上router-link to

<template v-for="item in itemArr">
    <template v-if="data === item.value">
        <el-row>
            <el-col :span="12" :xs="24" :sm="12" router-link-to="{{item.link}}">{{item.text}}</el-col>
        </el-row>
    </template>
         <template v-else>
                        {{item.text}}
        </template>
</template>

是想要这样么