Browse Source

chore[litemall-vue, litemall-admin]: 采用相对路径

Junling Bu 6 years ago
parent
commit
26a8000df6
2 changed files with 2 additions and 1 deletions
  1. 1 1
      litemall-admin/config/index.js
  2. 1 0
      litemall-vue/vue.config.js

+ 1 - 1
litemall-admin/config/index.js

@@ -60,7 +60,7 @@ module.exports = {
      * then assetsPublicPath should be set to "/bar/".
      * then assetsPublicPath should be set to "/bar/".
      * In most cases please use '/' !!!
      * In most cases please use '/' !!!
      */
      */
-    assetsPublicPath: '/',
+    assetsPublicPath: './',
 
 
     /**
     /**
      * Source Maps
      * Source Maps

+ 1 - 0
litemall-vue/vue.config.js

@@ -5,6 +5,7 @@ function resolve(dir = '') {
 }
 }
 
 
 module.exports = {
 module.exports = {
+  publicPath: './',
   outputDir: 'dist',
   outputDir: 'dist',
   assetsDir: 'static',
   assetsDir: 'static',
   productionSourceMap: false,
   productionSourceMap: false,