Sfoglia il codice sorgente

修改打包根路径

wangkang3 4 anni fa
parent
commit
8caf5c2550
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      ebc-middle-platform/.aid/aid.js

+ 2 - 2
ebc-middle-platform/.aid/aid.js

@ -51,9 +51,9 @@ module.exports = {
51 51
  beforeBuild(config) {
52 52
    let result = rules(config)
53 53
    result.output = {
54
      publicPath: '/'
54
      publicPath: '/energy/'
55 55
    }
56 56
    return result
57 57
  },
58
  outputPrefix: '/' // 构建后index.html中资源路径的前缀
58
  outputPrefix: '/energy/' // 构建后index.html中资源路径的前缀
59 59
}