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