Commit e3a21ab8acccf4dc8bbf8bab4fa1155d94093e59
1 parent
5e0639d0
代码提醒,减少走弯路
Showing
2 changed files
with
7 additions
and
2 deletions
README.md
ant-design-vue-jeecg/vue.config.js
... | ... | @@ -105,8 +105,10 @@ module.exports = { |
105 | 105 | '/jeecg-boot': '' //默认所有请求都加了jeecg-boot前缀,需要去掉 |
106 | 106 | } |
107 | 107 | },*/ |
108 | + /* 注意:jeecgboot前端做了改造,此处不需要配置跨域和后台接口(只需要改.env相关配置文件即可) | |
109 | + issues/3462 很多人此处做了配置,导致刷新前端404问题,请一定注意*/ | |
108 | 110 | '/jeecg-boot': { |
109 | - target: 'http://localhost:8080', //请求本地 需要jeecg-boot后台项目 | |
111 | + target: 'http://localhost:8080', | |
110 | 112 | ws: false, |
111 | 113 | changeOrigin: true |
112 | 114 | }, |
... | ... |