1
yxh
2023-07-20 42deb933c04571578b8bf408ada9ca1dcc8d3dd8
vue.config.js
@@ -35,19 +35,11 @@
      [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:`http://192.168.1.4: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': ''
        } 
      }
    },