fix(ui): 修复图片路径与缩略显示;审核页展示图+介绍+用户

This commit is contained in:
2025-12-07 11:17:57 +08:00
parent b5da02cffc
commit b497fe97f3
7 changed files with 40 additions and 17 deletions

View File

@@ -8,7 +8,7 @@
{% set first = p.images[0] if p.images %}
{% if first %}
<a href="{{ url_for('posts.detail', post_id=p.id) }}">
<img class="photo-thumb" src="{{ url_for('main.uploads', filename=first.web_path.split('uploads\\')[-1]) }}" alt="{{ p.title }}" />
<img class="photo-thumb" src="{{ url_for('main.uploads', filename=first.web_path) }}" alt="{{ p.title }}" />
</a>
{% endif %}
<div class="p-3">