1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-28 12:10:20 +08:00

feat: crud组件handleSearch增加参数控制是否留在当前页

This commit is contained in:
zclzone
2024-06-20 14:02:45 +08:00
parent c98e489063
commit c2ff434b9d
3 changed files with 14 additions and 5 deletions

View File

@@ -120,7 +120,7 @@ const { modalRef, modalFormRef, modalAction, modalForm, handleAdd, handleDelete,
doDelete: api.delete,
doUpdate: api.update,
initForm: { enable: true },
refresh: () => $table.value?.handleSearch(),
refresh: (_, keepCurrentPage) => $table.value?.handleSearch(keepCurrentPage),
})
const columns = [