2***@qq.com
2***@qq.com
  • 发布:2024-12-18 08:54
  • 更新:2024-12-18 09:20
  • 阅读:75

为什么 自己调用自己组件 在真机上不显示递归调用 而在h5上可以 这是为啥啊?

分类:uni-app
<template> <view class=""> <template v-for="(secondPl,index) in secondComments"> <view class="leavelMessageRember-item1" > <view class="contentName"> {{secondPl.userName}} 回复 @{{parentName}} </view> <view class="content"> {{secondPl.message}} </view> </view> <view class="" @click="shuouhui" v-if="!secondPl.children" style="padding-left: 5px;color: #aaaaaa;background-color: aliceblue;font-size: 12px;"> 收回 </view> <morePL v-if="secondPl.children && secondPl.children.length" @Tback="shuouhui" parentName='secondPl.userName' secondComments="secondPl.children" ></morePL>
</template>
</view>
</template>
2024-12-18 08:54 负责人:无 分享
已邀请:
靐齉齾麤龖龗

靐齉齾麤龖龗 - 解决不了问题,那就解决提出问题的人

需要在pages.json的globalStyle=》usingComponents配置递归组件

  • 2***@qq.com (作者)

    老哥真的吗?晚上 我试试

    2024-12-18 13:34

  • 2***@qq.com (作者)

    真机 可以了 小程序 不可以了

    2025-02-05 12:12

  • 靐齉齾麤龖龗

    回复 2***@qq.com: 去看看小程序的配置,看看是不是需要开启什么东西

    2025-02-05 14:07

要回复问题请先登录注册