fix(cli): template v-for warning

This commit is contained in:
chenjiahan 2020-08-22 11:18:56 +08:00
parent ae24b9a448
commit 0db9030f11

View File

@ -10,9 +10,12 @@
<h2 v-if="config.description" class="demo-home__desc">
{{ config.description }}
</h2>
<template v-for="(group, index) in config.nav">
<demo-home-nav :group="group" :lang="lang" :key="index" />
</template>
<demo-home-nav
v-for="(group, index) in config.nav"
:key="index"
:lang="lang"
:group="group"
/>
</div>
</template>