fix: 调用 再次运行接口
This commit is contained in:
parent
363295a3fe
commit
d30b20aceb
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue