| | |
| | | url: `/drone-device-core/wayline/api/v1/workspaces/getJobIdsBySn`, |
| | | method: 'get', |
| | | params, |
| | | customize: params.areaCode |
| | | }) |
| | | } |
| | | // 附件下载 |
| | |
| | | method: 'post', |
| | | data: data, |
| | | }) |
| | | } |
| | | } |
| | |
| | | config.url = baseUrl + config.url; |
| | | } |
| | | //安全请求header |
| | | config.headers['areaCode'] = store?.state?.user?.userInfo?.detail?.areaCode; |
| | | config.headers['areaCode'] = config?.params?.areaCode || store?.state?.user?.userInfo?.detail?.areaCode; |
| | | config.headers['Blade-Requested-With'] = 'BladeHttpRequest'; |
| | | //headers判断是否需要 |
| | | const authorization = config.authorization === false; |