vue中使用双层v-for获取数据
即遍历goods中的foods
<ul>
<li v-for="(good, index) in goods" :key="index">
<p class="discount">{
{ good.name }}</p>
<ul >
<li >
<div class="discountList border-bottom" v-for="(food, index) in good.foods" :key="index">
<div class="img">
<img src="./img/eat.jpeg" alt="蜡笔小新" />
</div>
<div class="right">
<p class="font-weight-bold">{
{ "南瓜粥" }}</p>
<p class="color">{
{ "甜粥" }}&l