diff --git a/vue.config.js b/vue.config.js index 7c75bb3..061df14 100644 --- a/vue.config.js +++ b/vue.config.js @@ -14,7 +14,7 @@ function resolve(dir) { } const httpType = 'https://' const proxyUrl = '10.10.33.218:60006' // EFC 3.0 代理地址设置 -const publicPath = '/cop-web/' +const publicPath = process.env.NODE_ENV === 'production' ? '/cop-web/' : '/' module.exports = { publicPath, assetsDir: 'static',