处理咨询大屏图片地址问题
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user