diff --git a/buyer/public/index.html b/buyer/public/index.html index 1a632be6..99ba65cc 100644 --- a/buyer/public/index.html +++ b/buyer/public/index.html @@ -9,7 +9,7 @@ <%= htmlWebpackPlugin.options.title %> - + diff --git a/buyer/vue.config.js b/buyer/vue.config.js index 196d993f..8f937f61 100644 --- a/buyer/vue.config.js +++ b/buyer/vue.config.js @@ -6,6 +6,7 @@ const resolve = (dir) => path.join(__dirname, dir); const enableProduction = process.env.NODE_ENV === "production"; module.exports = { + publicPath: process.env.VUE_APP_PUBLIC_PATH || "/", outputDir: "dist", assetsDir: "static", css: { diff --git a/im/vue.config.js b/im/vue.config.js index 4e91e9d6..8c7b5faa 100644 --- a/im/vue.config.js +++ b/im/vue.config.js @@ -12,7 +12,7 @@ function resolve(dir) { // vue.config.js const vueConfig = { // 公共路径(必须有的) - publicPath: '/', + publicPath: process.env.VUE_APP_PUBLIC_PATH || '/', // 输出文件目录 outputDir: 'dist', // 静态资源存放的文件夹(相对于ouputDir) diff --git a/manager/public/index.html b/manager/public/index.html index 671140da..bb773a6e 100644 --- a/manager/public/index.html +++ b/manager/public/index.html @@ -72,8 +72,8 @@ <% for(var js of htmlWebpackPlugin.options.cdn.js) { %> <% } %> - - + +