fix(topone): 修复获取优秀记录时返回数据格式不正确的问题
返回数据应从res.data.excellent_record_list改为直接返回res.data,以匹配接口返回格式
This commit is contained in:
@@ -675,7 +675,7 @@ const params={
|
|||||||
const cacheKey = getCacheKey('CenterExcellentRecord', params);
|
const cacheKey = getCacheKey('CenterExcellentRecord', params);
|
||||||
const result = await withCache(cacheKey, async () => {
|
const result = await withCache(cacheKey, async () => {
|
||||||
const res = await getExcellentRecordFile(params);
|
const res = await getExcellentRecordFile(params);
|
||||||
return res.data.excellent_record_list;
|
return res.data;
|
||||||
});
|
});
|
||||||
excellentRecord.value = result;
|
excellentRecord.value = result;
|
||||||
console.log(111111,result);
|
console.log(111111,result);
|
||||||
|
|||||||
Reference in New Issue
Block a user