Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chatGLM
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
刘坚-丰林-DEV
chatGLM
Commits
18d92ecd
Commit
18d92ecd
authored
Apr 18, 2023
by
文旺-丰林-DEV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix login error not show message
parent
c49c0059
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.tsx
src/components/loginModal/index.tsx
+2
-1
No files found.
src/components/loginModal/index.tsx
View file @
18d92ecd
import
styles
from
'./index.less'
;
import
styles
from
'./index.less'
;
import
{
Button
,
Checkbox
,
Form
,
Input
,
Modal
}
from
'antd'
;
import
{
Button
,
Checkbox
,
Form
,
Input
,
Modal
,
message
}
from
'antd'
;
import
{
LockOutlined
,
UserOutlined
}
from
'@ant-design/icons'
;
import
{
LockOutlined
,
UserOutlined
}
from
'@ant-design/icons'
;
import
logoSvg
from
'../../assets/logo.svg'
;
import
logoSvg
from
'../../assets/logo.svg'
;
import
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
{
useEffect
,
useRef
,
useState
}
from
'react'
;
...
@@ -53,6 +53,7 @@ const LoginModal = (props: ILoginModalProps) => {
...
@@ -53,6 +53,7 @@ const LoginModal = (props: ILoginModalProps) => {
setLoading
(
false
);
setLoading
(
false
);
reset
();
reset
();
}
catch
(
error
)
{
}
catch
(
error
)
{
message
.
error
(
'账号或者密码错误'
);
setLoading
(
false
);
setLoading
(
false
);
}
}
};
};
...
...
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