From cb8f23e9ab030d0a84b51dffc403233c55646370 Mon Sep 17 00:00:00 2001 From: lianlonggang Date: Wed, 5 Nov 2025 17:46:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=92=A8=E8=AF=A2=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F=E5=9B=BE=E7=89=87=E5=9C=B0=E5=9D=80=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../healthConsultation/components/healthContentMiddle.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/healthConsultation/components/healthContentMiddle.vue b/src/views/healthConsultation/components/healthContentMiddle.vue index 204a8f6..7086f6d 100644 --- a/src/views/healthConsultation/components/healthContentMiddle.vue +++ b/src/views/healthConsultation/components/healthContentMiddle.vue @@ -45,9 +45,11 @@ import { Image as AImage } from 'ant-design-vue'; import { getDocList } from '/@/views/healthConsultation/api/health'; + import { getAppEnvConfig } from '/@/utils/env.ts'; + const { VITE_GLOB_API_URL } = getAppEnvConfig(); function getFileUrl(path?: string) { - const GATEWAY_URL = import.meta.env.VITE_GLOB_API_URL; + const GATEWAY_URL = VITE_GLOB_API_URL; if (!path) return '/@/assets/health/default.png'; // 使用默认图片 return `${GATEWAY_URL}/file/show/${path}`; }