Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
559edb04
authored
Nov 28, 2023
by
1808837298@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新修改默认密码的提示
parent
b7ac0b18
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
web/src/components/LoginForm.js
+3
-5
No files found.
web/src/components/LoginForm.js
View file @
559edb04
...
...
@@ -90,14 +90,12 @@ const LoginForm = () => {
if
(
success
)
{
userDispatch
({
type
:
'login'
,
payload
:
data
});
localStorage
.
setItem
(
'user'
,
JSON
.
stringify
(
data
));
if
(
username
===
'root'
&&
password
===
'123456'
)
{
navigate
(
'/user/edit'
);
showSuccess
(
'登录成功!'
);
if
(
username
===
'root'
&&
password
===
'123456'
)
{
showWarning
(
'请立刻修改默认密码!'
);
}
else
{
navigate
(
'/token'
);
showSuccess
(
'登录成功!'
);
Modal
.
error
({
title
:
'您正在使用默认密码!'
,
content
:
'请立刻修改默认密码!'
});
}
navigate
(
'/token'
);
}
else
{
showError
(
message
);
}
...
...
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