diff --git a/composables/useFontLists.ts b/composables/useFontLists.ts new file mode 100644 index 0000000..05460d7 --- /dev/null +++ b/composables/useFontLists.ts @@ -0,0 +1,12 @@ +export const useFontLists = (fontUrl: string, fontListFile: string) => { + const {data: fonts, error, pending} = useFetch(fontUrl + fontListFile, { + key: 'font-lists', + server: false, + lazy: false, + }); + return { + fonts, + error, + pending + } +} \ No newline at end of file