Skip to content

Commit 12c267a

Browse files
docs: Fix undefined issue for ExampleSearch.vue (#2370)
1 parent 38625a8 commit 12c267a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/.vitepress/components/ExampleSearch.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@ defineProps<{
88
tag?: string;
99
}>();
1010
11-
const exampleMetadata = ref<ExamplesMetadata>();
11+
const exampleMetadata = ref<ExamplesMetadata>({
12+
allApis: [],
13+
allPackages: [],
14+
allPermissions: [],
15+
examples: [],
16+
});
1217
onMounted(async () => {
1318
const res = await fetch(
1419
'https://raw.githubusercontent.com/wxt-dev/examples/main/metadata.json',

0 commit comments

Comments
 (0)