Optimize modal

This commit is contained in:
2024-02-17 14:27:20 +08:00
parent 524b57ed8b
commit b798bb3eb5
9 changed files with 25 additions and 0 deletions

View File

@@ -216,6 +216,7 @@ const Tools = () => {
modal
.confirm({
title: '删除',
maskClosable: true,
content: `确定删除工具 ${tool.name}:${tool.ver} 吗?`
})
.then(
@@ -245,6 +246,7 @@ const Tools = () => {
const handleOnUpgradeTool = (tool: ToolVo) => {
void modal.confirm({
title: '更新工具',
maskClosable: true,
content: (
<>
<AntdForm form={upgradeForm}>
@@ -319,6 +321,7 @@ const Tools = () => {
modal
.confirm({
title: '提交审核',
maskClosable: true,
content: `确定提交审核工具 ${tool.name}:${tool.ver} 吗?`
})
.then(
@@ -357,6 +360,7 @@ const Tools = () => {
modal
.confirm({
title: '取消审核',
maskClosable: true,
content: `确定取消审核工具 ${tool.name}:${tool.ver} 吗?`
})
.then(