mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
--fix bug
This commit is contained in:
@@ -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", []);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user