yanqiliang 3 days ago
parent
commit
e58f3fd69d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      vite.config.js

+ 6 - 0
vite.config.js

@@ -107,6 +107,12 @@ export default defineConfig({
 				target: 'https://hlwyy.scsmysgkyy.cn',
 				changeOrigin: true,
 			},
+			// 病历模板中的旧版相对图片地址(如 /EMRSys/custom/images/image.png)
+			// 在 H5 开发环境下需转发到正式资源服务,避免被解析为 localhost 资源。
+			'/EMRSys': {
+				target: 'https://hlwyy.scsmysgkyy.cn',
+				changeOrigin: true,
+			},
 			'/fileUp/': {
 				target: 'https://np.h03.p0551.com',
 				changeOrigin: true,