WXL
2026-08-12 99229b25c71c8305082743ad623fad3cad6f2f6a
vue.config.js
@@ -32,16 +32,24 @@
    open: true,
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        target:`http://localhost:8086`,
        // target:`http://116.62.18.175:8080`,
        // target:`http://192.168.1.4:8080`,
      [process.env.VUE_APP_BASE_API]: {
        // target:`http://localhost:8080`,
        target:`http://192.168.100.10:8081`,
        // target:`http://192.168.100.137:8080`,
        // 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
  },