docs: Fix undefined issue for ExampleSearch.vue (#2370)

This commit is contained in:
Patryk Kuniczak
2026-06-29 15:27:59 +02:00
committed by GitHub
parent 38625a8cd3
commit 12c267a5d1
+6 -1
View File
@@ -8,7 +8,12 @@ defineProps<{
tag?: string;
}>();
const exampleMetadata = ref<ExamplesMetadata>();
const exampleMetadata = ref<ExamplesMetadata>({
allApis: [],
allPackages: [],
allPermissions: [],
examples: [],
});
onMounted(async () => {
const res = await fetch(
'https://raw.githubusercontent.com/wxt-dev/examples/main/metadata.json',