VueJS v-for Key:使用方法从商店中获取值

问题描述 投票:0回答:1

如何使用v-for从商店使用方法获取一组key:值?

The CodePen is available here

我感谢任何帮助。

附:我已经10年了,有人/不知何故删除了我的帐户。所以,我重新开始了。

vuejs2 store vuex v-for
1个回答
0
投票

添加v-for="(item, index) in array"将从索引中提取值。

更新:globalHours()[index]取代globalHours()

© www.soinside.com 2019 - 2024. All rights reserved.