索引不相同啊,而且都已经改成item.id之类的,还是在不停的报错
诚明小巫
- 发布:2019-01-24 16:01
- 更新:2019-01-30 10:13
- 阅读:2146
2 个回复
Dexc
你确定id也是不重复的吗? 你可以在第一层index前面加上一个别的字符试试
8***@qq.com
<scroll-view class="content" scroll-y="true">
<view class="content_foot" v-for="(item, index) in hotFootList" :key="item.id">
<view class="title">
<view class="name">{{item.title}}</view>
<image class="image" :src="item.img"></image>
</view>
<view class="flex_menu">
<view class="flex_context" v-for="(itemSub, index1) in item.subs" :key="itemSub.name">{{itemSub.name}}</view>
需要这样才能编译成功