提交 35217941 编写于 作者: joewan's avatar joewan

fix error

上级 f3b811fa
......@@ -5,6 +5,7 @@
</template>
<script>
import buildConf from '@/../build.config.js'
var path = process.env.VUE_APP_BASE_API
export default {
name:"FormGenerator",
......
......@@ -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字符串删除
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册