Browse Source

feat: 添加条件渲染以显示作者信息

EvilDragon 3 months ago
parent
commit
bf05c53c35
1 changed files with 1 additions and 0 deletions
  1. 1 0
      packages/app/src/pages/home/components/comment-item.vue

+ 1 - 0
packages/app/src/pages/home/components/comment-item.vue

@@ -104,6 +104,7 @@ defineExpose({
             {{ options.userName }}
           </div>
           <div
+            v-if="options.ownDel"
             class="px-1 rounded-[30px] border border-solid border-[#0cbe7c] justify-center items-center gap-2.5 inline-flex"
           >
             <div class="text-[#0cbe7c] text-[9px] font-normal font-['PingFang_SC']">作者</div>