fix: proxy unstable native image media

This commit is contained in:
winchen
2026-08-01 11:57:16 +08:00
parent 0d3d410bd2
commit e6d5dfbfc1
9 changed files with 549 additions and 42 deletions
+3 -2
View File
@@ -48,7 +48,7 @@
@click.stop="handleImageClick(message)"
>
<img
:src="message.attachment.url"
:src="imageDisplayUrl(message.attachment.url)"
:alt="message.attachment.name || '图片'"
loading="lazy"
decoding="async"
@@ -133,7 +133,7 @@
>
<img
class="image-viewer-img"
:src="imageViewer.url"
:src="imageDisplayUrl(imageViewer.url)"
:alt="imageViewer.name || '图片'"
:style="imageViewerStyle"
decoding="async"
@@ -219,6 +219,7 @@
<script setup>
import { computed, nextTick, onBeforeUnmount, onMounted, reactive, ref, watch } from 'vue';
import { useContactStore } from '@/stores/contacts';
import { imageDisplayUrl } from '@/services/mediaProxy';
const props = defineProps({
messages: {