adminforth 1.15.0-next.10 → 1.15.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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>
|