--fix bug

This commit is contained in:
yuping
2023-04-03 18:12:54 +08:00
parent 25a8b57232
commit 908dd886af
2 changed files with 23 additions and 21 deletions

View File

@@ -102,9 +102,9 @@ const changePagination = (e) => {
nextTick(onFetch);
};
function reset(v = {}) {
function reset(v) {
params.reset();
emit("update:params", { ...v });
v && emit("update:params", { ...v });
nextTick(onFetch);
}
@@ -115,11 +115,11 @@ function resetSelected() {
emit("update:selectedRows", []);
}
function clear(v = {}) {
function clear(v) {
rowSelectKeys.value = [];
selectsData.value = [];
params.reset();
emit("update:params", { ...v });
v && emit("update:params", { ...v });
emit("update:selectedRowKeys", []);
emit("update:selectedRows", []);
}