|
|
|
@ -25,16 +25,16 @@ http.interceptors.request.use(
|
|
|
|
|
config.timeout = 1000 * 60 * 60;
|
|
|
|
|
//console.log('123456',config)
|
|
|
|
|
//生产请将注释解开重要重要
|
|
|
|
|
// if (config.url.includes('/api')) {
|
|
|
|
|
// config.baseURL = 'http://192.168.202.23:5001';
|
|
|
|
|
// } else if (config.url.includes('http')) {
|
|
|
|
|
// //直接使用写死地址
|
|
|
|
|
// } else {
|
|
|
|
|
// config.baseURL = 'http://192.168.202.34:30000'; //正式
|
|
|
|
|
// // config.baseURL = 'http://192.168.202.20:9000'//测试
|
|
|
|
|
// //'http://192.168.202.20:9000' ///测试
|
|
|
|
|
// //'http://192.168.202.34:30000'; //正式
|
|
|
|
|
// }
|
|
|
|
|
if (config.url.includes('/api')) {
|
|
|
|
|
config.baseURL = 'http://192.168.202.23:5001';
|
|
|
|
|
} else if (config.url.includes('http')) {
|
|
|
|
|
//直接使用写死地址
|
|
|
|
|
} else {
|
|
|
|
|
config.baseURL = 'http://192.168.202.34:30000'; //正式
|
|
|
|
|
// config.baseURL = 'http://192.168.202.20:9000'//测试
|
|
|
|
|
//'http://192.168.202.20:9000' ///测试
|
|
|
|
|
//'http://192.168.202.34:30000'; //正式
|
|
|
|
|
}
|
|
|
|
|
// 所有请求默认提示加载中
|
|
|
|
|
if (config.url == '/prod-api/quality/handCheck/commitCheckResultsCg') {
|
|
|
|
|
loading = undefined;
|
|
|
|
|