Browse Source

chore(nc-gui): extract api error in interceptor

pull/3801/head
braks 2 years ago
parent
commit
3a0c62cb4e
  1. 4
      packages/nc-gui/composables/useApi/index.ts

4
packages/nc-gui/composables/useApi/index.ts

@ -126,9 +126,9 @@ export function useApi<Data = any, RequestConfig = any>({
return Promise.resolve(apiResponse) return Promise.resolve(apiResponse)
}, },
(apiError) => { async (apiError) => {
errorHook.trigger(apiError) errorHook.trigger(apiError)
error.value = apiError error.value = await extractSdkResponseErrorMsg(apiError)
onRequestFinish() onRequestFinish()

Loading…
Cancel
Save