| | |
| | | // 创建axios实例 |
| | | const service = axios.create({ |
| | | // axios中请求配置有baseURL选项,表示请求URL公共部分 |
| | | // baseURL: process.env.VUE_APP_BASE_API, |
| | | baseURL: 'http://192.168.11.203:8090/prod-api', |
| | | baseURL: process.env.VUE_APP_BASE_API, |
| | | //baseURL: 'http://192.168.11.203:8090/prod-api', |
| | | // 超时 |
| | | timeout: 10000 |
| | | }) |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://192.168.11.203:8090`, |
| | | target: `http://localhost:8080`, |
| | | //target: `http://192.168.11.203:8090`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |