【issues/6943】mock翻页之后数据id和图片没自动刷新

pull/7060/head
JEECG 4 months ago
parent 4aa4c57db4
commit e0fb952146

@ -48,7 +48,10 @@ export default [
method: 'get',
response: ({ query }) => {
const { page = 1, pageSize = 20 } = query;
return resultPageSuccess(page, pageSize, demoList);
// update-begin--author:liaozhiyang---date:20240730---forissues/6943mockid
const pageNo = +(query.pageNo ?? page);
return resultPageSuccess(pageNo, +pageSize, demoList);
// update-end--author:liaozhiyang---date:20240730---forissues/6943mockid
},
},
] as MockMethod[];

Loading…
Cancel
Save