fix: 调用 再次运行接口

This commit is contained in:
imeepos 2025-12-29 17:06:32 +08:00
parent 363295a3fe
commit d30b20aceb
1 changed files with 3 additions and 5 deletions

View File

@ -31,7 +31,7 @@ const Sync = () => {
refetch,
} = useTemplateGenerations()
const { uploadFile, loading: uploadLoading } = useFileUpload()
const { runTemplate, batchDeleteGenerations, loading: actionLoading } = useTemplateActions()
const { reRunTemplate, batchDeleteGenerations, loading: actionLoading } = useTemplateActions()
const [viewState, setViewState] = useState<'home' | 'manager' | 'scanner'>('home')
const [selectedItem, setSelectedItem] = useState({} as any)
@ -263,10 +263,8 @@ const Sync = () => {
Toast.hideModal()
const { generationId, error } = await runTemplate({
templateId: selectedItem.templateId,
data: {},
originalUrl: selectedItem.originalUrl,
const { generationId, error } = await reRunTemplate({
generationId: selectedItem.id
})
Toast.hideLoading()