coba plugin
This commit is contained in:
parent
ac71dcb1b3
commit
813ab942d1
@ -27,7 +27,7 @@ export default defineNuxtPlugin((nuxtApp) => {
|
||||
}
|
||||
}
|
||||
|
||||
throw response._data || new Error('Unknown API error');
|
||||
throw new Error(response._data?.message || 'Unknown API error');
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user