Skip to content

Commit

Permalink
fix(Core): 修复后端代码组件错误
Browse files Browse the repository at this point in the history
  • Loading branch information
medz committed Nov 14, 2018
1 parent bff8c3d commit 84777bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions resources/assets/admin/components/commons/OffsetPaginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
</slot>

<!-- Pagination Elements -->
<slot v-for="element in elements" v-bind="element">
<slot v-for="(element) in elements" v-bind="element">

<li v-if="element.currend" class="page-item active">
<li v-if="element.currend" class="page-item active" :key="element.page">
<span class="page-link">{{ element.page }}</span>
</li>
<li v-else class="page-item">
<li v-else class="page-item" :key="element.page">
<a class="page-link" href="#" :data-offset="element.offset">{{ element.page }}</a>
</li>

Expand Down
2 changes: 1 addition & 1 deletion resources/assets/admin/components/commons/SerchUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
placeholder="请输入用户名">
<ul class="dropdown-menu" style="max-height: 200px;overflow: auto;">
<template v-if="users.length">
<li v-for="user in users" @click.prevent="choiceUser(user.id)">
<li v-for="user in users" @click.prevent="choiceUser(user.id)" :key="user.id">
<a href="javascript:;">
<img :src="`${user.avatar}?w=40&height=40`" class="img-circle avatar" v-if="user.avatar">
<i class="glyphicon glyphicon-user" v-else></i>
Expand Down

0 comments on commit 84777bc

Please sign in to comment.