From 7217004dd8e6d0a7d8a8433a9f389ad26ebe78e5 Mon Sep 17 00:00:00 2001 From: invalid w Date: Fri, 12 Apr 2024 20:31:55 +0800 Subject: [PATCH] docs(list): update Error loading module code (#12778) --- packages/vant/src/list/README.md | 1 + packages/vant/src/list/README.zh-CN.md | 1 + 2 files changed, 2 insertions(+) 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; }); };