浏览代码

修改构建脚本

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

+ 3 - 3
config/index.js

@@ -9,9 +9,9 @@ module.exports = {
 
     // Paths
     assetsSubDirectory: 'static',
-    assetsPublicPath: '/dw',
+    assetsPublicPath: '/dw/',
     proxyTable: {
-      '/api': {
+      '/api/dwsurvey': {
         target: 'http://localhost:8080/',//本地开发环境只需要修改这个配置,修改为后端服务地址即可
         changeOrigin: true,//如果需要跨域
         pathRewrite: {
@@ -58,7 +58,7 @@ module.exports = {
     // Paths
     assetsRoot: path.resolve(__dirname, '../dist'),
     assetsSubDirectory: 'static',
-    assetsPublicPath: '/dw',
+    assetsPublicPath: '/dw/',
 
     /**
      * Source Maps