Closed ccfish86 closed 4 years ago
''' // 上传 // @param FormData bodyParams - file export function importManager(bodyParams) { return request({ url: bindUrl('/api/user/import', {}), method: 'POST', data: bodyParams, headers: { "Content-Type": "application/x-www-form-urlencoded" }, }); } // 下载 // responseType=blob时,需要在../request.js里进一步处理Response export function exportModule() { return request({ url: bindUrl('/api/user/export-templet', {}), method: 'GET', responseType: 'blob', }); } '''
''' // 上传 // @param FormData bodyParams - file export function importManager(bodyParams) { return request({ url: bindUrl('/api/user/import', {}), method: 'POST', data: bodyParams, headers: { "Content-Type": "application/x-www-form-urlencoded" }, }); } // 下载 // responseType=blob时,需要在../request.js里进一步处理Response export function exportModule() { return request({ url: bindUrl('/api/user/export-templet', {}), method: 'GET', responseType: 'blob', }); } '''