Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
前端:分页查询模块去除加载查询,每个页面需要单独调用handleSearch进行首次加载查询
  • Loading branch information
4linuxfun committed Jan 25, 2024
commit 341b7ddacc1133791d66ccf7bb0cefdea0ec5977
10 changes: 5 additions & 5 deletions www/src/composables/usePagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ export default function usePagination(url, searchForm, orderType = 'asc') {
page_size: pageSize,
model:orderModel
})
// 初始化调用
searchFunc(search, currentPage.value, pageSize.value, orderModel.value).then((response) => {
tableData.value = response.data
total.value = response.total
})
// // 初始化调用
// searchFunc(search, currentPage.value, pageSize.value, orderModel.value).then((response) => {
// tableData.value = response.data
// total.value = response.total
// })

const freshCurrentPage = () => {
searchFunc(search, currentPage.value, pageSize.value, orderModel.value).then((response) => {
Expand Down