Commit 761bb09a by 姜雷

修复客服反馈时间排序

parent e2c66eb5
...@@ -41,16 +41,20 @@ const useFeedbackList = (customerId: number) => { ...@@ -41,16 +41,20 @@ const useFeedbackList = (customerId: number) => {
.then(res => { .then(res => {
console.log(res); console.log(res);
if (res.data.length) { if (res.data.length) {
let list = res.data.map(item => ({
...item,
replayList: item.replayList.reverse(),
}));
if (lastId) { if (lastId) {
dispatch({ dispatch({
type: 'getMoreList', type: 'getMoreList',
payload: res.data, payload: list,
}); });
setPaination({ ...pagination, pageNum: pagination.pageNum + 1 }); setPaination({ ...pagination, pageNum: pagination.pageNum + 1 });
} else { } else {
dispatch({ dispatch({
type: 'refreshList', type: 'refreshList',
payload: res.data, payload: list,
}); });
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment