Browse Source

🐞 fix: 修复乐跑记录页面分页无效的问题

Pchen. 10 months ago
parent
commit
772ee35aa6

+ 2 - 2
src/pages/admin/lepaoRecords/lepaoRecords.vue

@@ -200,14 +200,14 @@ const getRecords = async () => {
 // 分页 - 页码变化
 const handlePageChange = (page) => {
   pagination.current = page
-  getPathList()
+  getRecords()
 }
 
 // 分页 - 每页条数变化
 const handlePageSizeChange = (size) => {
   pagination.pagesize = size
   pagination.current = 1 // 页大小变化后回到第一页
-  getPathList()
+  getRecords()
 }
 
 const stramptoTime = (time) => {

+ 2 - 2
src/pages/lepao/lepaoRecords/index.vue

@@ -200,14 +200,14 @@ const getRecords = async () => {
 // 分页 - 页码变化
 const handlePageChange = (page) => {
   pagination.current = page
-  getPathList()
+  getRecords()
 }
 
 // 分页 - 每页条数变化
 const handlePageSizeChange = (size) => {
   pagination.pagesize = size
   pagination.current = 1 // 页大小变化后回到第一页
-  getPathList()
+  getRecords()
 }
 
 const stramptoTime = (time) => {