Skip to content

Commit 5b4df37

Browse files
committed
feat(project): opimize code
1 parent c1cfee7 commit 5b4df37

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/pages/(blank)/login/index.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ const PwdLogin = () => {
5252
}
5353
];
5454

55-
function handleSubmit(params: LoginParams) {
56-
toLogin(params);
57-
}
58-
5955
function handleAccountLogin(account: Account) {
6056
toLogin(account);
6157
}
@@ -83,7 +79,7 @@ const PwdLogin = () => {
8379
className="pt-24px"
8480
form={form}
8581
initialValues={INITIAL_VALUES}
86-
onFinish={handleSubmit}
82+
onFinish={toLogin}
8783
>
8884
<AForm.Item
8985
name="userName"

0 commit comments

Comments
 (0)