zhangyanpeng
2020-05-07 dca74c76b85c5ece7b87beae9d9f921883b55564
vue.config.js
@@ -1,16 +1,16 @@
module.exports = {
    // 修改的配置
    // 将baseUrl: '/api',改为baseUrl: '/',
    publicPath: '/',
   publicPath: './',
    outputDir: 'dist',
    devServer: {
      port: 80,
        proxy: {
            '/api': {
                target: '192.168.31.233:8090',
            '/api/api': {
                target: 'http://srs.highdatas.com:8090',
               // target: 'http://192.168.31.233:8090',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                  '^/api': ''
                  '^/api/api': ''
                }
            }
        }