Minimal Viable Product + Refactor to pinia store + Fix PDF export
Some checks failed
linter / quality (push) Successful in 3m37s
tests / ci (push) Failing after 13m21s

This commit is contained in:
2025-09-16 16:30:37 +02:00
parent f3ff6fd6ac
commit cb242e59ba
39 changed files with 1055 additions and 137 deletions

View File

@@ -26,9 +26,13 @@ export async function httpApi<T>(url: string, options?: RequestInit, useFetchOpt
...options,
},
useFetchOptions
).json();
);
if (!error.value && data.value) {
if (data.value) {
data.value = JSON.parse(data.value as string) as T;
}
if (!error.value) {
return { data: data.value, error: null };
} else {
return { data: data.value, error: error.value };