File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -178,9 +178,14 @@ const DEFAULT_PAGE_SIZE = 10;
178
178
179
179
const pageSize = computed (() => coreStore .resource ?.options ?.listPageSize || DEFAULT_PAGE_SIZE );
180
180
181
+ let isPageLoaded = ref (false );
181
182
182
183
async function getList() {
183
184
rows .value = null ;
185
+ if (! isPageLoaded .value ) {
186
+ return ;
187
+ }
188
+ console .log (' getListValidFilters' , filtersStore .filers );
184
189
const data = await callAdminForthApi ({
185
190
path: ' /get_resource_data' ,
186
191
method: ' POST' ,
@@ -434,9 +439,6 @@ watch([page], async () => {
434
439
setQuery ({ page: page .value });
435
440
});
436
441
437
-
438
-
439
-
440
442
watch ([sort ], async () => {
441
443
if (! sort .value .length ) {
442
444
setQuery ({ sort: undefined });
@@ -445,5 +447,8 @@ watch([sort], async () => {
445
447
setQuery ({ sort: SortQuerySerializer .serialize (sort .value ) });
446
448
});
447
449
450
+ watch (() => coreStore .resource , () => {
451
+ isPageLoaded .value = true ;
452
+ });
448
453
449
454
</script >
You can’t perform that action at this time.
0 commit comments