forked from verdnatura/salix-front
refs #6611 fix: QpoupProxy descriptor bug
This commit is contained in:
parent
b7847ab351
commit
65b8df79ef
|
@ -101,12 +101,15 @@ export function useArrayData(key, userOptions) {
|
|||
hasMoreData.value = response.data.length === limit;
|
||||
|
||||
if (append) {
|
||||
store.data = response.data.map(({ row }) => row);
|
||||
} else {
|
||||
if (!store.data) store.data = [];
|
||||
for (const row of response.data) store.data.push(row);
|
||||
}
|
||||
|
||||
else {
|
||||
store.data = response.data;
|
||||
|
||||
updateRouter && updateStateParams();
|
||||
}
|
||||
updateRouter && updateStateParams();
|
||||
}
|
||||
|
||||
store.isLoading = false;
|
||||
|
||||
|
@ -152,9 +155,7 @@ export function useArrayData(key, userOptions) {
|
|||
delete store.userParams[param];
|
||||
delete params[param];
|
||||
if (store.filter?.where) {
|
||||
delete store.filter.where[
|
||||
Object.keys(exprBuilder ? exprBuilder(param) : param)[0]
|
||||
];
|
||||
delete store.filter.where[Object.keys(exprBuilder ? exprBuilder(param) : param)[0]];
|
||||
if (Object.keys(store.filter.where).length === 0) {
|
||||
delete store.filter.where;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue