后端查看效果,不用拉取
This commit is contained in:
@@ -5,4 +5,28 @@ export async function getIndustryTrend(params?: API.Analysis.IndustryParams) {
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
}
|
||||
export async function getIndustryAreaTrend(params: any) {
|
||||
try {
|
||||
const response = await request('/api/cms/statics/industryArea', {
|
||||
method: 'GET',
|
||||
params,
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
});
|
||||
|
||||
console.log('接口原始响应:', response); // 调试日志
|
||||
return response; // 兼容不同后端响应格式
|
||||
} catch (error) {
|
||||
console.error('接口请求异常:', error);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
export async function getSalaryTrend(params?: API.Analysis.IndustryParams) {
|
||||
return request<API.Analysis.IndustryResult>('/api/cms/statics/salary', {
|
||||
method: 'GET',
|
||||
params
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user