optimized error message

This commit is contained in:
marvzhang
2020-07-25 10:43:50 +08:00
parent fe310a7345
commit c9b1c73ce6
2 changed files with 2 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ const errorHandler = (error) => {
const errorText = response.data.error
const { status } = response
Message({
message: `请求错误 ${status}: ${response.request.responseURL}. ${errorText}`,
message: i18n.t('Request Error') + ` ${status}: ${response.request.responseURL}. ${errorText}`,
type: 'error',
duration: 5 * 1000
})