Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
86201be3
Commit
86201be3
authored
Jan 11, 2023
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11111
parent
5f63adb9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
AvatarDropdown.jsx
src/components/RightContent/AvatarDropdown.jsx
+1
-2
request.js
src/utils/request.js
+1
-1
No files found.
src/components/RightContent/AvatarDropdown.jsx
View file @
86201be3
...
@@ -206,9 +206,8 @@ const AvatarDropdown = ({ menu }) => {
...
@@ -206,9 +206,8 @@ const AvatarDropdown = ({ menu }) => {
<
HeaderDropdown
overlay=
{
menuHeaderDropdown
}
>
<
HeaderDropdown
overlay=
{
menuHeaderDropdown
}
>
<
span
className=
{
`${styles.action} ${styles.account}`
}
>
<
span
className=
{
`${styles.action} ${styles.account}`
}
>
<
Avatar
style=
{
{
backgroundColor
:
'#1890ff'
}
}
>
<
Avatar
style=
{
{
backgroundColor
:
'#1890ff'
}
}
>
{
currentUser
.
usern
ame
.
substr
(
0
,
1
)
}
{
currentUser
.
fullN
ame
.
substr
(
0
,
1
)
}
</
Avatar
>
</
Avatar
>
<
span
className=
{
`${styles.name} anticon`
}
style=
{
{
margin
:
'0 12px'
}
}
>
<
span
className=
{
`${styles.name} anticon`
}
style=
{
{
margin
:
'0 12px'
}
}
>
{
currentUser
.
fullName
}
{
currentUser
.
fullName
}
</
span
>
</
span
>
...
...
src/utils/request.js
View file @
86201be3
...
@@ -32,7 +32,7 @@ const errorHandler = (error) => {
...
@@ -32,7 +32,7 @@ const errorHandler = (error) => {
const
errorText
=
codeMessage
[
response
.
status
]
||
response
.
statusText
;
const
errorText
=
codeMessage
[
response
.
status
]
||
response
.
statusText
;
const
{
status
,
url
}
=
response
;
const
{
status
,
url
}
=
response
;
if
(
status
==
'401'
||
status
==
'302'
)
{
if
(
status
==
'401'
||
status
==
'302'
)
{
// window.location.href = 'http://idp.nangaoyun.com:8080/login
';
window
.
location
.
href
=
'/
'
;
}
}
}
else
if
(
!
response
)
{
}
else
if
(
!
response
)
{
notification
.
error
({
notification
.
error
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment