fix: 重制搜索条件
This commit is contained in:
parent
403501b214
commit
035ba22f52
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user