Optimize code

This commit is contained in:
2024-03-01 15:34:01 +08:00
parent 935a1a223a
commit fb94ae6a52
7 changed files with 56 additions and 9 deletions

View File

@@ -262,6 +262,8 @@ const Tools = () => {
const handleOnUpgradeTool = (tool: ToolVo) => {
void modal.confirm({
title: '更新工具',
getContainer: false,
centered: true,
maskClosable: true,
content: (
<>
@@ -285,7 +287,14 @@ const Tools = () => {
}
]}
>
<AntdInput maxLength={10} showCount placeholder={'请输入版本'} />
<AntdInput
maxLength={10}
showCount
placeholder={'请输入版本'}
ref={(input) => {
input?.focus()
}}
/>
</AntdForm.Item>
</AntdForm>
</>