|
@@ -109,16 +109,12 @@ const errorHandler = error => {
|
|
|
}
|
|
}
|
|
|
switch (showType) {
|
|
switch (showType) {
|
|
|
case ErrorShowType.ERROR_MESSAGE:
|
|
case ErrorShowType.ERROR_MESSAGE:
|
|
|
- console.log('error', showType === ErrorShowType.ERROR_MESSAGE)
|
|
|
|
|
-
|
|
|
|
|
message.error(errorMessage)
|
|
message.error(errorMessage)
|
|
|
break
|
|
break
|
|
|
case ErrorShowType.WARN_MESSAGE:
|
|
case ErrorShowType.WARN_MESSAGE:
|
|
|
- console.log('warn', showType === ErrorShowType.WARN_MESSAGE)
|
|
|
|
|
message.warn(errorMessage)
|
|
message.warn(errorMessage)
|
|
|
break
|
|
break
|
|
|
case ErrorShowType.NOTIFICATION:
|
|
case ErrorShowType.NOTIFICATION:
|
|
|
- console.log('noti', showType === ErrorShowType.NOTIFICATION)
|
|
|
|
|
const title = consts.TOKEN_INVALID_CODE.includes(errorCode) ? '用户信息过期' : '请求失败'
|
|
const title = consts.TOKEN_INVALID_CODE.includes(errorCode) ? '用户信息过期' : '请求失败'
|
|
|
notification.error({
|
|
notification.error({
|
|
|
message: title,
|
|
message: title,
|