wangkang3 4 years ago
parent
commit
a94163eaa2
1 changed files with 17 additions and 4 deletions
  1. 17 4
      ebc-middle-platform/.aid/aid.js

+ 17 - 4
ebc-middle-platform/.aid/aid.js

@ -51,11 +51,24 @@ module.exports = {
51 51
  beforeBuild(config) {
52 52
    let result = rules(config)
53 53
    result.output = {
54
      publicPath: '/energy/'
54
      publicPath: '/'
55 55
    }
56 56
    return result
57 57
  },
58
  imagePrefix: '/energy/',
59
  staticPrefix: '/energy/',
60
  outputPrefix: '/energy/' // 构建后index.html中资源路径的前缀
58
  imagePrefix: '/',
59
  staticPrefix: '/',
60
  outputPrefix: '/' // 构建后index.html中资源路径的前缀
61
  // ,
62
  // proxy: [
63
  //   {
64
  //     url: '/ipu',
65
  //     options: {
66
  //       target: 'http://127.0.0.1:8086',
67
  //       changeOrigin: true,
68
  //       pathRewrite: {
69
  //         '^/ipu': '/'
70
  //       }
71
  //     }
72
  //   },
73
  // ]
61 74
}