File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Jinja2==2.11.3
27
27
jsonpointer == 2.0
28
28
jsonschema == 3.2.0
29
29
kubernetes == 11.0.0
30
- MarkupSafe == 1.1 .1
30
+ MarkupSafe == 2.0 .1
31
31
oauthlib == 3.1.0
32
32
packaging == 20.4
33
33
pathtools == 0.1.2
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
1
2
import { extend } from 'umi-request' ;
2
3
import { notification } from 'antd' ;
3
4
import { history } from 'umi' ;
@@ -25,8 +26,13 @@ const codeMessage = {
25
26
* 异常处理程序
26
27
*/
27
28
const errorHandler = error => {
28
- const { response = { } } = error ;
29
- const errortext = codeMessage [ response . status ] || response . statusText ;
29
+ const { response, data } = error ;
30
+ const errortext = (
31
+ < >
32
+ { codeMessage [ response . status ] || response . statusText } < br />
33
+ { data . msg [ 0 ] }
34
+ </ >
35
+ ) ;
30
36
const { status, url } = response ;
31
37
let verifyUserFail = false ;
32
38
You can’t perform that action at this time.
0 commit comments