mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-12 12:36:43 +08:00
Merge branch 'feature/GFRS-1991【待确定】APP检测结果优化-整理' into dev
# Conflicts: # src/assets/js/utils/request.js # src/views/ebiz/manpower/Training.vue # src/views/ebiz/sale/List.vue
This commit is contained in:
@@ -131,7 +131,7 @@ service.interceptors.request.use(
|
||||
/**
|
||||
* 请求拦截处理(待添加 判断走统一网关处理)
|
||||
*/
|
||||
if (config.url && /api\/$/.test(config.url.split(configApp.API_VERSION)[0])) {
|
||||
if (configApp.API_VERSION == 'v2' && config.url && /api\/$/.test(config.url.split(configApp.API_VERSION)[0])) {
|
||||
if (!config.data || config.data == null) {
|
||||
config.data = {}
|
||||
}
|
||||
@@ -163,6 +163,7 @@ service.interceptors.response.use(
|
||||
console.log('----------------')
|
||||
let res = response.data
|
||||
if (
|
||||
configApp.API_VERSION == 'v2' &&
|
||||
response.config.url &&
|
||||
response.headers['content-type'].match(/application\/json/) &&
|
||||
/api\/$/.test(response.config.url.split(configApp.API_VERSION)[0])
|
||||
|
||||
Reference in New Issue
Block a user