fix: 重制搜索条件

This commit is contained in:
JaguarJack 2023-05-10 16:55:38 +08:00
parent 403501b214
commit 035ba22f52

View File

@ -57,11 +57,7 @@ export function useGetList(path: string, isPaginate: boolean = true) {
// reset // reset
function reset() { function reset() {
resetPage() resetPage()
query.value = Object.assign(isPaginate ? { page: page.value, limit: limit.value } : {})
if (isPaginate) {
query.value = Object.assign({ page: page.value, limit: limit.value })
}
getList() getList()
} }