mirror of https://github.com/halo-dev/halo-admin
fix: abnormal style due to long title of recent posts in the dashboard (#545)
* fix 最近文章 时间样式显示不正常 #1836 * Update src/views/dashboard/Dashboard.vue Co-authored-by: Ryan Wang <i@ryanc.cc> * Update src/views/dashboard/Dashboard.vue Co-authored-by: Ryan Wang <i@ryanc.cc> * Update src/views/dashboard/Dashboard.vue Co-authored-by: Ryan Wang <i@ryanc.cc> Co-authored-by: Ryan Wang <i@ryanc.cc>pull/557/head
parent
4de9e320da
commit
50c178a1c1
|
@ -62,18 +62,13 @@
|
|||
{{ item.title }}
|
||||
</a>
|
||||
|
||||
<a-button
|
||||
v-else-if="item.status === 'DRAFT'"
|
||||
class="!p-0"
|
||||
type="link"
|
||||
@click="handlePostPreview(item.id)"
|
||||
>
|
||||
<a herf="javascript:void(0)" v-else-if="item.status === 'DRAFT'" @click="handlePostPreview(item.id)">
|
||||
{{ item.title }}
|
||||
</a-button>
|
||||
</a>
|
||||
|
||||
<a-button v-else-if="item.status === 'RECYCLE'" class="!p-0" disabled type="link">
|
||||
<a herf="javascript:void(0)" v-else-if="item.status === 'RECYCLE'" disabled>
|
||||
{{ item.title }}
|
||||
</a-button>
|
||||
</a>
|
||||
</template>
|
||||
</a-list-item-meta>
|
||||
<div>{{ item.createTime | timeAgo }}</div>
|
||||
|
|
Loading…
Reference in New Issue