fix: 弹框
This commit is contained in:
parent
3b959152ad
commit
b509cc2bb2
|
|
@ -79,7 +79,8 @@ const ModelManagePage: React.FC = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleDeleteModel = async (modelId: string) => {
|
const handleDeleteModel = async (modelId: string) => {
|
||||||
if (!confirm('确定要删除这个模特吗?')) return
|
const isOk = confirm('确定要删除这个模特吗?')
|
||||||
|
if (!isOk) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await ModelService.deleteModel(modelId)
|
const response = await ModelService.deleteModel(modelId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue