后端查看效果,不用拉取

This commit is contained in:
yy
2025-05-30 14:26:32 +08:00
parent f7e4ccc608
commit 4136170101
7 changed files with 911 additions and 499 deletions

View File

@@ -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
});
}