From e0fb952146801d24d19de1f4f8ed72a382ccca09 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Mon, 5 Aug 2024 13:53:48 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/6943=E3=80=91mock=E7=BF=BB?= =?UTF-8?q?=E9=A1=B5=E4=B9=8B=E5=90=8E=E6=95=B0=E6=8D=AEid=E5=92=8C?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=B2=A1=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jeecgboot-vue3/mock/demo/table-demo.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jeecgboot-vue3/mock/demo/table-demo.ts b/jeecgboot-vue3/mock/demo/table-demo.ts index 81519641..db6b8090 100644 --- a/jeecgboot-vue3/mock/demo/table-demo.ts +++ b/jeecgboot-vue3/mock/demo/table-demo.ts @@ -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---for:【issues/6943】mock翻页之后数据id和图片没自动刷新 + const pageNo = +(query.pageNo ?? page); + return resultPageSuccess(pageNo, +pageSize, demoList); + // update-end--author:liaozhiyang---date:20240730---for:【issues/6943】mock翻页之后数据id和图片没自动刷新 }, }, ] as MockMethod[];