浏览代码

update static代理

zhulizhen1111 5 年之前
父节点
当前提交
978523aab6
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      config/index.js

+ 3 - 3
config/index.js

@@ -7,7 +7,7 @@ const path = require('path')
 module.exports = {
   dev: {
     // Paths
-    assetsSubDirectory: 'static',
+    assetsSubDirectory: '/',
     assetsPublicPath: '/',
     proxyTable: {
       '/api': {
@@ -70,9 +70,9 @@ module.exports = {
 
     // Paths
     assetsRoot: path.resolve(__dirname, '../dist'),
-    assetsSubDirectory: '/hyy-alarm/static',
+    assetsSubDirectory: 'hyy-alarm/static',
     assetsPublicPath: '/',
-
+    staticPath: './', //生产环境 staticPath:''
     /**
      * Source Maps
      */