改个bug

This commit is contained in:
小易
2024-02-04 20:43:13 +08:00
parent 2ca3c164a0
commit b2de61c353
2 changed files with 16 additions and 3 deletions

View File

@@ -164,6 +164,19 @@ defineExpose({ textRef })
style="margin-top: 0.5rem"
v-if="imageUrl && isImageUrl"
/>
<a
:href="imageUrl"
target="_blank"
:class="{ 'file-2': isMobile, 'file-1': !isMobile }"
>
<img
src="@/assets/file.jpeg"
alt="文件"
class="h-auto rounded-md mb-1"
:class="{ 'file-2': isMobile, 'file-1': !isMobile }"
v-if="imageUrl && !isImageUrl"
/>
</a>
</div>
</div>
</div>