mirror of
https://github.com/youzan/vant.git
synced 2026-01-14 06:03:45 +08:00
docs(list): update Error loading module code (#12778)
This commit is contained in:
@@ -86,6 +86,7 @@ export default {
|
||||
const loading = ref(false);
|
||||
const onLoad = () => {
|
||||
fetchSomeThing().catch(() => {
|
||||
loading.value = false;
|
||||
error.value = true;
|
||||
});
|
||||
};
|
||||
|
||||
@@ -95,6 +95,7 @@ export default {
|
||||
const loading = ref(false);
|
||||
const onLoad = () => {
|
||||
fetchSomeThing().catch(() => {
|
||||
loading.value = false;
|
||||
error.value = true;
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user