From 6387168d3d12b4b6323e3104d9f0a77a2bf76afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Tue, 16 Apr 2024 19:25:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BA=E5=9B=BE=E6=A0=87=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/PostList.vue | 7 +++++-- pages/account/index.vue | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/components/PostList.vue b/components/PostList.vue index f16b259..0c10dd6 100644 --- a/components/PostList.vue +++ b/components/PostList.vue @@ -11,16 +11,19 @@ div(v-html="markdown(item.data)") .options i.fas.fa-eraser( - v-if="account.gid === 1 || account.uid === item.uid", + v-if="account.gid === 1 || account.uid === item.uid" @click="remove(item._id)" + title="删除" ) i.fas.fa-marker( - v-if="account.gid === 1 || account.uid === item.uid", + v-if="account.gid === 1 || account.uid === item.uid" @click="remove(item._id)" + title="编辑" ) i.fas.fa-heart( :class="{ like: item.like }", @click="like(item._id, item.like)" + title="点赞" ) .post-none(v-else) 没有评论~ diff --git a/pages/account/index.vue b/pages/account/index.vue index f10322f..c5fd6a0 100644 --- a/pages/account/index.vue +++ b/pages/account/index.vue @@ -6,7 +6,6 @@ span.fa.fa-edit.avatar-edit .name {{ account.name }} input#img_add(type="file", accept="image/*", @change="upload($event)") - // multiple="multiple", input#bg(type="file", accept="image/*", @change="upload_bg($event)") .content.main-width p account