yxh
yxh
2023-03-16 f4c7c812491f51777e6b4d43d17d77526e91fe12
vue.config.js
@@ -34,10 +34,12 @@
      // 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`,
        //target: `https://slb.hospitalstar.com:9093`,
        //target:`http://192.168.0.106:8080`,
        changeOrigin: true,
        pathRewrite:  (path) => path.replace(/^\/dev-api/, '')
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      }
    },
    disableHostCheck: true
@@ -47,6 +49,7 @@
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },