fix(cli): Header.vue add key attr (#7303)

This commit is contained in:
linbingquan 2020-10-09 15:52:47 +08:00 committed by GitHub
parent 3ee2200bea
commit cf65d6cbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,11 @@
/>
<ul class="van-doc-header__top-nav">
<li v-for="item in config.links" class="van-doc-header__top-nav-item">
<li
v-for="(item, index) in config.links"
:key="index"
class="van-doc-header__top-nav-item"
>
<a
class="van-doc-header__logo-link"
target="_blank"
@ -37,7 +41,8 @@
<transition name="van-doc-dropdown">
<div v-if="showVersionPop" class="van-doc-header__version-pop">
<div
v-for="item in versions"
v-for="(item, index) in versions"
:key="index"
class="van-doc-header__version-pop-item"
@click="onSwitchVersion(item)"
>