| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-07-29 15:19:13 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2022-11-15 15:08:30 |
| | | * @LastEditTime: 2022-12-05 15:10:21 |
| | | * @FilePath: \srs-police-affairs\src\router\axios.js |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | */ |
| | |
| | | const service = axios.create({ |
| | | // baseURL: 'http://36.14.255.242:18080/api', |
| | | // baseURL: 'http://192.168.0.102:1888/api', |
| | | // baseURL: 'http://192.168.0.105:8081/api', |
| | | baseURL: 'http://192.168.0.106:1888/api', |
| | | baseURL: 'http://192.168.0.105:18080/api', |
| | | // baseURL: 'http://192.168.0.106:1888/api', |
| | | timeout: 600000 // request timeout |
| | | }) |
| | | |
| | |
| | | |
| | | if (config.requestBaseUrl == 'outside') { |
| | | // config.baseURL = 'http://192.168.0.102:1888/api' |
| | | // config.baseURL = 'http://192.168.0.105:8081/api' |
| | | config.baseURL = 'http://192.168.0.106:1888/api' |
| | | config.baseURL = 'http://192.168.0.105:80/api' |
| | | // config.baseURL = 'http://192.168.0.106:1888/api' |
| | | } |
| | | |
| | | // const token = auth.getToken() |