hanbaoshan
2021-01-29 b47da15ef38b754aa9ead53279a689ef0ba8e23f
vue.config.js
@@ -60,6 +60,12 @@
  },
  productionSourceMap: false,
  filenameHashing: false,
  pwa: {
    iconPaths: {
      favicon32: 'favicon.ico',
      favicon16: 'favicon.ico'
    }
  },
  devServer: {
    proxy: {
      '/track': {
@@ -68,20 +74,24 @@
        changeOrigin: true,
      },
      '/ws': {
        target: 'http://192.168.20.10:7003',
        target: 'http://192.168.20.189:7003',
        // ws: true,
        changeOrigin: true,
      },
      "/data/api-v/app/findAllApp": {
        target: '/',
        // target: '/',
        target: 'http://localhost:8080/',
        changeOrigin: true,
        pathRewrite: {
          '^/data/api-v/app/findAllApp': 'apps.json'
        }
      },
      "/api-c": {
        target: 'http://192.168.20.113:8004',
        changeOrigin: true
      },
      "/api-v": {
        target: 'http://192.168.20.10:8000',
        target: 'http://192.168.20.189:8888',
        changeOrigin: true
      },
      "/api-f": {
@@ -95,15 +105,15 @@
        changeOrigin: true
      },
      "/api-u": {
        target: 'http://192.168.20.10:8000',
        target: 'http://192.168.20.189:8888',
        changeOrigin: true
      },
      "/httpImage": {
        target: 'http://192.168.20.10:7003',
        target: 'http://192.168.20.189:7003',
        changeOrigin: true, //开启代理
      },
      "/files": {
        target: 'http://192.168.20.10:7003',
        target: 'http://192.168.20.189:7003',
        changeOrigin: true, //开启代理
      }
    }