diff --git a/packages/vant/src/list/README.md b/packages/vant/src/list/README.md index 893cd06c8..253956a17 100644 --- a/packages/vant/src/list/README.md +++ b/packages/vant/src/list/README.md @@ -86,6 +86,7 @@ export default { const loading = ref(false); const onLoad = () => { fetchSomeThing().catch(() => { + loading.value = false; error.value = true; }); }; diff --git a/packages/vant/src/list/README.zh-CN.md b/packages/vant/src/list/README.zh-CN.md index 6953e72db..7f7788eb9 100644 --- a/packages/vant/src/list/README.zh-CN.md +++ b/packages/vant/src/list/README.zh-CN.md @@ -95,6 +95,7 @@ export default { const loading = ref(false); const onLoad = () => { fetchSomeThing().catch(() => { + loading.value = false; error.value = true; }); };