jhzh
2024-03-23 0d29d9a2bf0d893a67f1263bb9525131a50a2128
config/index.js
@@ -11,20 +11,37 @@
    assetsSubDirectory: 'static',
    assetsPublicPath: '/',
    proxyTable: {
      // '/api': {
      //   target:'http://43.198.126.79:8091/',
      //   secure: false,
      //   changeOrigin: true,
      //   pathRewrite: {
      //     '^/api': '/'
      //   }
      // },
      '/': {
        // target: 'https://pc.zsycyy.com',
        // target: 'http://www.shehua56.com',
        target:'https://api.mitrade.cc/',
        target:'http://121.43.237.202:8091/',
        // target:'https://api.guosen.org/',
        secure: false,
        changeOrigin: true,
        pathRewrite: {
          '^/': '/'
        }
      },
      '/dk': {
        target: 'http://121.43.237.202:8091/',
        secure: false,
        changeOrigin: true,
        pathRewrite: {
          '^/dk': '/dk'
        }
      }
    },
    // Various Dev Server settings
    host: '0.0.0.0', // can be overwritten by process.env.HOST
    host: '127.0.0.1', // can be overwritten by process.env.HOST
    port: 80, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
    autoOpenBrowser: true,
    errorOverlay: true,