@anweb/nuxt-ancore 1.15.4 → 1.15.6
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.
package/dist/module.json
CHANGED
|
@@ -8,9 +8,9 @@ export const useAnList = (initConfig) => {
|
|
|
8
8
|
let resetInfiniteScroll;
|
|
9
9
|
const init = async () => {
|
|
10
10
|
await data.init();
|
|
11
|
-
refresh();
|
|
11
|
+
await refresh();
|
|
12
12
|
};
|
|
13
|
-
const refresh = () => {
|
|
13
|
+
const refresh = async () => {
|
|
14
14
|
if (!data.data.value) return;
|
|
15
15
|
if (!config.value.apiConfig?.query?.[config.value.skipField || "skip"]) {
|
|
16
16
|
setCount(null);
|
|
@@ -22,7 +22,7 @@ export const useAnList = (initConfig) => {
|
|
|
22
22
|
items.push(...data.data.value.items);
|
|
23
23
|
}
|
|
24
24
|
setCount(data.data.value.count);
|
|
25
|
-
|
|
25
|
+
await nextTick();
|
|
26
26
|
};
|
|
27
27
|
const setCount = (value) => {
|
|
28
28
|
count.value = value;
|