p***@163.com
p***@163.com
  • 发布:2023-05-27 12:58
  • 更新:2023-05-27 12:58
  • 阅读:105

u-parse 多次渲染 后面的富文本都渲染到第一个里面了

分类:uni-app

比如我有个列表 显示了标题 下面按条件显示

<view v-for="(item, index) in list">  
  <h2>{{item.title}}</h2>  
  <u-parse v-if="index === 2" :html="data1"></u-parse>  
  <u-parse v-if="index === 3" :html="data2"></u-parse>  
  <u-parse v-if="index === 4" :html="data3"></u-parse>  
</view>
2023-05-27 12:58 负责人:无 分享
已邀请:

要回复问题请先登录注册