Răsfoiți Sursa

打包静态资源路径改为相对路径

macro 5 ani în urmă
părinte
comite
e0930ab8a0
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      config/index.js

+ 1 - 1
config/index.js

@@ -43,7 +43,7 @@ module.exports = {
     // Paths
     // Paths
     assetsRoot: path.resolve(__dirname, '../dist'),
     assetsRoot: path.resolve(__dirname, '../dist'),
     assetsSubDirectory: 'static',
     assetsSubDirectory: 'static',
-    assetsPublicPath: '/',
+    assetsPublicPath: './',
 
 
     /**
     /**
      * Source Maps
      * Source Maps