chao 1 năm trước cách đây
mục cha
commit
87323bff4a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      vue.config.js

+ 1 - 1
vue.config.js

@@ -11,7 +11,7 @@ const CompressionWebpackPlugin = require("compression-webpack-plugin");
 const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
 const productionGzipExtensions = /\.(js|css|json|txt|html|ico|svg)(\?.*)?$/i;
 module.exports = {
 module.exports = {
   // 废弃baseUrl  一般运维会配置好的
   // 废弃baseUrl  一般运维会配置好的
-  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",
+  publicPath: process.env.NODE_ENV === "production" ? "./" : "/",
   //打包的输出目录
   //打包的输出目录
 //   outputDir: "dist/",
 //   outputDir: "dist/",
   //保存时是否校验
   //保存时是否校验