From e824586698c810e45ecf334b29a275e558bc0d5f Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 08 五月 2023 15:32:05 +0800
Subject: [PATCH] 前端代码提交

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

diff --git a/vue.config.js b/vue.config.js
index 34490e4..c0ca227 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -33,11 +33,13 @@
     proxy: {
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://localhost:8080`,
-        // target:`http://slb.hospitalstar.com:9091`,
-        // target1:`http://192.168.2.3:8080`,
+        //target: `http://192.168.2.3:8080`,
+        //target: `https://slb.hospitalstar.com:9093`,
+        target:`http://116.62.18.175:8080`,
         changeOrigin: true,
-        pathRewrite:  (path) => path.replace(/^\/dev-api/, '')
+        pathRewrite: {
+          ['^' + process.env.VUE_APP_BASE_API]: ''
+        }
       }
     },
     disableHostCheck: true
@@ -47,6 +49,7 @@
     resolve: {
       alias: {
         '@': resolve('src')
+
       }
     }
   },
@@ -78,7 +81,7 @@
             .plugin('ScriptExtHtmlWebpackPlugin')
             .after('html')
             .use('script-ext-html-webpack-plugin', [{
-            // `runtime` must same as runtimeChunk name. default is `runtime`
+              // `runtime` must same as runtimeChunk name. default is `runtime`
               inline: /runtime\..*\.js$/
             }])
             .end()
@@ -108,8 +111,8 @@
             })
           config.optimization.runtimeChunk('single'),
           {
-             from: path.resolve(__dirname, './public/robots.txt'), //闃茬埇铏枃浠�
-             to: './' //鍒版牴鐩綍涓�
+            from: path.resolve(__dirname, './public/robots.txt'), //闃茬埇铏枃浠�
+            to: './' //鍒版牴鐩綍涓�
           }
         }
       )

--
Gitblit v1.9.3