详情页面加上:

标题:
内容;
This commit is contained in:
王创世 2025-04-16 16:06:51 +08:00
parent 824cca2457
commit d03078e7fe
2 changed files with 12 additions and 16 deletions

View File

@ -18,22 +18,16 @@
<t-tag v-if="detail.status == 3" theme="danger">已拒绝</t-tag>
</div>
</div>
<div class="tweet-content">
{{ detail.content }}
<div>
<div style="font-size: 20px;font-weight: bold;margin-bottom: 10px;text-align: center;">{{ detail.title }}</div>
</div>
<div class="tweet-content" v-html="detail.content"></div>
<div class="tweet-images" v-if="detail.files && detail.files.length > 0">
<h3>图片附件</h3>
<t-image-viewer v-model="visible" :images="detail.files">
<template #trigger="{ open }">
<div class="image-grid">
<div
v-for="(image, index) in detail.files"
:key="index"
class="image-item"
@click="open"
>
<div v-for="(image, index) in detail.files" :key="index" class="image-item" @click="open">
<img :src="image" :alt="`附件图片${index + 1}`" />
</div>
</div>

View File

@ -90,7 +90,9 @@
<t-tag v-if="detailInfo.status == 3" theme="danger">已拒绝</t-tag>
</div>
</div>
<div>
<div style="font-size: 20px;font-weight: bold;margin-bottom: 10px;text-align: center;">{{ detailInfo.title }}</div>
</div>
<div class="tweet-content" v-html="detailInfo.content"></div>
<div class="tweet-images" v-if="detailInfo.files && detailInfo.files.length > 0">