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
ZXSheng 2022-04-11 17:04:11 +08:00 committed by GitHub
parent 4de9e320da
commit 50c178a1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 9 deletions

View File

@ -62,18 +62,13 @@
{{ item.title }} {{ item.title }}
</a> </a>
<a-button <a herf="javascript:void(0)" v-else-if="item.status === 'DRAFT'" @click="handlePostPreview(item.id)">
v-else-if="item.status === 'DRAFT'"
class="!p-0"
type="link"
@click="handlePostPreview(item.id)"
>
{{ item.title }} {{ 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 }} {{ item.title }}
</a-button> </a>
</template> </template>
</a-list-item-meta> </a-list-item-meta>
<div>{{ item.createTime | timeAgo }}</div> <div>{{ item.createTime | timeAgo }}</div>