fix some error in notification frontend

This commit is contained in:
Jack Goh
2018-08-30 16:48:29 +08:00
parent bd1e38273e
commit 5cecb731f6
3 changed files with 17 additions and 17 deletions
+16 -15
View File
@@ -13,23 +13,24 @@
<el-dropdown-menu slot="dropdown">
<div id="notification">
<div v-if="notifications">
<div v-for="(idx,item) in notifications" :key="idx">
<a v-on:click.prevent='navigateTo(item.data.link)'>
<div v-for="(idx,item) in notifications" :key="idx.id">
<el-dropdown-item>
<!-- <b v-if="item.is_read == 0">
{{item.detail}}
asd
</b> -->
<span >
{{item.data.details}}
</span>
<br/>
<span class="opacity80">
<timeago :datetime="item.created_at"></timeago>
</span>
<a v-on:click.prevent='navigateTo(item.data.link)'>
<!-- <b v-if="item.is_read == 0">
{{item.detail}}
asd
</b> -->
<span >
{{item.data.details}}
</span>
<br/>
<span class="opacity80">
<timeago :datetime="item.created_at"></timeago>
</span>
</a>
</el-dropdown-item>
</a>
</div>
</div>