generated from kevisual/vite-react-template
feat: 简化创建仓库逻辑,移除响应码检查
This commit is contained in:
@@ -50,11 +50,9 @@ export function CreateRepoDialog({ open, onOpenChange }: CreateRepoDialogProps)
|
|||||||
...data,
|
...data,
|
||||||
}
|
}
|
||||||
|
|
||||||
const res = await createRepo(submitData)
|
await createRepo(submitData)
|
||||||
if (res?.code === 200) {
|
onOpenChange(false)
|
||||||
onOpenChange(false)
|
refresh()
|
||||||
refresh()
|
|
||||||
}
|
|
||||||
} finally {
|
} finally {
|
||||||
setIsSubmitting(false)
|
setIsSubmitting(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user