| | |
| | | open: true, |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | //target: `http://localhost:8080`, |
| | | target: `https://slb.hospitalstar.com:9093`, |
| | | //target:`http://192.168.0.106: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: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |
| | | } |
| | | }, |
| | | //当pdf和数据接口不在同一个请求地址下时,为pdf预览追加一个代理 |
| | | '/pdf': { |
| | | target: 'http://192.168.1.4/pdf/data', |
| | | changOrigin: true, |
| | | pathRewrite: { |
| | | '^/pdf': '' |
| | | } |
| | | } |
| | | }, |
| | | disableHostCheck: true |