user preferences
All checks were successful
Deploy / deploy (push) Successful in 36s

This commit is contained in:
2025-12-25 22:50:56 +06:00
parent 22c5fafb11
commit bf38267c37
21 changed files with 359 additions and 102 deletions

View File

@@ -4,10 +4,13 @@ const instance = $fetch.create({
baseURL: __API_BASE_URL__,
credentials: 'include',
retry: false,
onResponseError({ response }) {
onResponseError({ request, response }) {
if (!import.meta.client)
return
if (typeof request === 'string' && request.endsWith('/me'))
return
const message = response._data.error || 'Something went wrong'
ToastEventBus.emit('add', { severity: 'error', summary: 'Error', detail: message, closable: false, life: 3000 })