From 935c201bdcf4adde998d46893dd0fa3eddf400bb Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期四, 20 七月 2023 17:55:22 +0800
Subject: [PATCH] 1

---
 vue.config.js |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/vue.config.js b/vue.config.js
index 67affe1..d788a6c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -34,13 +34,21 @@
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {        
         target:`http://localhost:8080`,
-        //target: `http://192.168.2.3:8080`,
         //target:`http://116.62.18.175:8080`,
-        //target: `https://slb.hospitalstar.com:9093`,
+        // target:`http://192.168.1.4:8086`,
+        // target: `https://slb.hospitalstar.com:9093`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''
         }
+      },
+      //褰損df鍜屾暟鎹帴鍙d笉鍦ㄥ悓涓�涓姹傚湴鍧�涓嬫椂,涓簆df棰勮杩藉姞涓�涓唬鐞�
+      '/pdf': {
+        target: 'http://192.168.1.4/pdf/data',
+        changOrigin: true,  
+        pathRewrite: {
+            '^/pdf': ''  
+        } 
       }
     },
     disableHostCheck: true

--
Gitblit v1.9.3