使用uniapp开发时,跳转参数
<view class="card-bottom">
<view class="price">{{ food.presentPrice }}元</view>
<view class="btn">
<view class="btn-item" @click="toPath(`/pages/StoreManagement/EditOrNewMenu?food=${food.id}`)">编辑</view>
<view class="btn-item" @click="updateFoodPublish(food.id)">下架</view>
</view>
</view>
发出警告Extraneous non-props attributes (id) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. 该如何解决
