diff --git a/components/PageTitle.vue b/components/PageTitle.vue
index 337d1bb..2b18f03 100644
--- a/components/PageTitle.vue
+++ b/components/PageTitle.vue
@@ -5,9 +5,9 @@ const props = defineProps<{
-
+
{{ text }}
-
+
diff --git a/components/YButton.vue b/components/YButton.vue
index 0969d9b..b602d7c 100644
--- a/components/YButton.vue
+++ b/components/YButton.vue
@@ -7,6 +7,7 @@ const props = withDefaults(
icon?: string
iconSize?: string
iconOnly?: boolean
+ iconClass?: string
block?: boolean
}>(),
{
diff --git a/composables/api.ts b/composables/api.ts
index 662e1a9..f7ce12d 100644
--- a/composables/api.ts
+++ b/composables/api.ts
@@ -40,6 +40,12 @@ export function useApi(
if (e.statusCode === 401) {
useIsLoggedIn().value = false
navigateTo('/login')
+ } else if (e.statusCode !== 400 && !e.data?.path) {
+ throw createError({
+ statusCode: e.statusCode,
+ statusMessage: e.message,
+ fatal: true,
+ })
}
})
}