From 09a67f20dd15926830ae138cbf7371452d708051 Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Wed, 24 Jun 2026 15:43:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(android):=20=E7=A6=81=E6=AD=A2=20Android=20?= =?UTF-8?q?App=20=E6=96=87=E4=BB=B6=E5=8D=A1=E7=89=87=E5=86=85=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E7=82=B9=E5=87=BB=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/src/components/chat/ShowFileCard.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/static/src/components/chat/ShowFileCard.vue b/static/src/components/chat/ShowFileCard.vue index 7e87472..f55aa15 100644 --- a/static/src/components/chat/ShowFileCard.vue +++ b/static/src/components/chat/ShowFileCard.vue @@ -61,9 +61,10 @@ @@ -110,6 +111,11 @@ const canPreview = computed(() => { const canCopy = computed(() => ['text', 'code', 'json', 'csv', 'markdown'].includes(fileType.value)); +const isAndroidApp = computed(() => { + return typeof (window as any).AndroidDownloadBridge !== 'undefined' || + typeof (window as any).AndroidThemeBridge !== 'undefined'; +}); + const metaText = computed(() => { if (!rawContent.value) return ''; const sizeKB = (new Blob([rawContent.value]).size / 1024).toFixed(1); @@ -465,4 +471,11 @@ onMounted(() => { padding: 12px; } +.sfc-image--android { + cursor: default; + pointer-events: none; + -webkit-user-select: none; + user-select: none; +} +