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;
|
hasMoreData.value = response.data.length === limit;
|
||||||
|
|
||||||
if (append) {
|
if (append) {
|
||||||
store.data = response.data.map(({ row }) => row);
|
if (!store.data) store.data = [];
|
||||||
} else {
|
for (const row of response.data) store.data.push(row);
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
store.data = response.data;
|
store.data = response.data;
|
||||||
|
|
||||||
updateRouter && updateStateParams();
|
updateRouter && updateStateParams();
|
||||||
}
|
}
|
||||||
|
|
||||||
store.isLoading = false;
|
store.isLoading = false;
|
||||||
|
|
||||||
|
@ -152,9 +155,7 @@ export function useArrayData(key, userOptions) {
|
||||||
delete store.userParams[param];
|
delete store.userParams[param];
|
||||||
delete params[param];
|
delete params[param];
|
||||||
if (store.filter?.where) {
|
if (store.filter?.where) {
|
||||||
delete store.filter.where[
|
delete store.filter.where[Object.keys(exprBuilder ? exprBuilder(param) : param)[0]];
|
||||||
Object.keys(exprBuilder ? exprBuilder(param) : param)[0]
|
|
||||||
];
|
|
||||||
if (Object.keys(store.filter.where).length === 0) {
|
if (Object.keys(store.filter.where).length === 0) {
|
||||||
delete store.filter.where;
|
delete store.filter.where;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue