From 2698387e653c6a25059c3ae9976f18b814eba892 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 12 九月 2025 15:16:46 +0800
Subject: [PATCH] 医疗权限
---
vue.config.js | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/vue.config.js b/vue.config.js
index 34490e4..d788a6c 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -32,12 +32,23 @@
open: true,
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`,
+ [process.env.VUE_APP_BASE_API]: {
+ target:`http://localhost:8080`,
+ //target:`http://116.62.18.175:8080`,
+ // target:`http://192.168.1.4:8086`,
+ // target: `https://slb.hospitalstar.com:9093`,
changeOrigin: true,
- pathRewrite: (path) => path.replace(/^\/dev-api/, '')
+ 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
@@ -47,6 +58,7 @@
resolve: {
alias: {
'@': resolve('src')
+
}
}
},
@@ -78,7 +90,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 +120,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