yxh
2026-08-12 b1c3b9a3a545a6ed639f25ff093751193be422ea
vue.config.js
@@ -33,8 +33,8 @@
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        target:`http://localhost:8080`,
        // target:`http://192.168.100.10:8080`,
        // 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,
@@ -42,14 +42,14 @@
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      },
      //当pdf和数据接口不在同一个请求地址下时,为pdf预览追加一个代理
      '/pdf': {
        target: 'http://192.168.1.4/pdf/data',
        changOrigin: true,
        pathRewrite: {
            '^/pdf': ''
        }
      }
      // 当pdf和数据接口不在同一个请求地址下时,为pdf预览追加一个代理
      // '/pdf': {
      //   target: 'http://192.168.1.4/pdf/data',
      //   changOrigin: true,
      //   pathRewrite: {
      //       '^/pdf': ''
      //   }
      // }
    },
    disableHostCheck: true
  },