<text v-for="(item, idx) in orderData.tags" :key="item.id">
<text>{{item}}{{idx === orderData.tags.length-1 ? " ":" / "}}</text>
</text>
重点
idx === orderData.tags.length-1 ? " ":" / "
或者
<el-table-column prop="announceTargetAppList" label="关联应用">
<template slot-scope="scope">
{{scope.row.sectionColumnName.length-1 ? '' : ',' }}
</template>
</el-table-column>
网友评论