Commit ebb00c1f authored by shabai517's avatar shabai517
Browse files

add key in the v-for loop

parent 5afc200a
......@@ -121,7 +121,7 @@
<!--<read-more class="readMore" more-str="(More)" :text="publicationItem.projectDescription" link="#" less-str="Less" :max-chars="200"></read-more>-->
</span>
<p><span class="project-info">{{projectItemsPublicationDate}}: </span><text-highlight :queries="highlightKeyword" :caseSensitive="HighlightKeywordSensitive">{{publicationItem.publicationDate}}</text-highlight></p>
<Dropdown class="dataset-wrapper" v-for="datesetItem in publicationItem.projectTags">
<Dropdown class="dataset-wrapper" v-for="(datesetItem, index) in publicationItem.projectTags" :key="index">
<a v-if="datesetItem == 'Biological'" class="button biological-dataset-button" href="javascript:void(0)">
<Icon type="ios-pricetag"></Icon>
<text-highlight :queries="highlightKeyword" :caseSensitive="HighlightKeywordSensitive">{{datesetItem}}</text-highlight> Dataset
......@@ -359,7 +359,6 @@
submissionType: projectsList[i].submissionType,
hightlightItemArray:[],
}
//console.log('projectsList[i].highlights',projectsList[i].highlights);
for(let j in projectsList[i].highlights){
let content='';
......
......@@ -376,7 +376,7 @@
<Card class="card" v-if="similarProjects.length>0">
<p slot="title"><i class="fas fa-link icon-tag"></i>Similar Studies</p>
<div class="list-wrapper">
<Card class="similarity-card" v-for="item in similarProjects">
<Card class="similarity-card" v-for="item in similarProjects" :key="item.accession">
<div class="similarity-title"><a @click="gotoDetails(item.accession)">{{item.title}}</a></div>
<div><span>{{item.submissionDate}}</span></div>
</Card>
......
......@@ -5,7 +5,7 @@
<Affix :offset-top="20">
<div class="menu-wrapper">
<Menu mode="vertical" :active-name="activeName" @on-select="menuSlect">
<MenuItem v-for="item in tableList" :name="item.name">
<MenuItem v-for="item in tableList" :name="item.name" :key="item.name">
<Icon type="ios-paper"></Icon>{{item.content}}
</MenuItem>
</Menu>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment