Browse Source

chore: fix axios error message

main
刘凯 1 year ago
parent
commit
01d97521a4
  1. 2
      src/utils/http/axios/index.ts

2
src/utils/http/axios/index.ts

@ -229,7 +229,7 @@ const transform: AxiosTransform = {
errorLogStore.addAjaxErrorInfo(error)
const { response, code, message, config } = error || {}
const errorMessageMode = config?.requestOptions?.errorMessageMode || 'none'
const msg: string = response?.data?.error?.message ?? ''
const msg: string = response?.data?.msg ?? ''
const err: string = error?.toString?.() ?? ''
let errMessage = ''

Loading…
Cancel
Save