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}`; }