fix: 弹框

This commit is contained in:
root 2025-07-11 10:38:45 +08:00
parent 3b959152ad
commit b509cc2bb2
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ const ModelManagePage: React.FC = () => {
}
const handleDeleteModel = async (modelId: string) => {
if (!confirm('确定要删除这个模特吗?')) return
const isOk = confirm('确定要删除这个模特吗?')
if (!isOk) return
try {
const response = await ModelService.deleteModel(modelId)