소스 검색

fix error

东邪黄药师 4 년 전
부모
커밋
3521794109
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      web/src/view/systemTools/formCreate/index.vue
  2. 1 1
      web/vue.config.js

+ 1 - 0
web/src/view/systemTools/formCreate/index.vue

@@ -5,6 +5,7 @@
 </template>
 
 <script>
+import buildConf from '@/../build.config.js'
 var path = process.env.VUE_APP_BASE_API
 export default {
     name:"FormGenerator",

+ 1 - 1
web/vue.config.js

@@ -25,7 +25,7 @@ module.exports = {
             // 把key的路径代理到target位置
             // detail: https://cli.vuejs.org/config/#devserver-proxy
             [process.env.VUE_APP_BASE_API]: { //需要代理的路径   例如 '/api'
-                target: `http://127.0.0.1:` + buildConf.port + `/`, //代理到 目标路径
+                target: `http://127.0.0.1:` + buildConf.goServerPort + `/`, //代理到 目标路径
                 changeOrigin: true,
                 pathRewrite: { // 修改路径数据
                     ['^' + process.env.VUE_APP_BASE_API]: '' // 举例 '^/api:""' 把路径中的/api字符串删除