chore: rework useSubmit (#2649)

rework useSubmit
This commit is contained in:
Bernd Storath
2026-06-03 10:08:07 +02:00
committed by GitHub
parent e03d743307
commit bc95a2851f
16 changed files with 124 additions and 127 deletions
+5 -4
View File
@@ -36,10 +36,11 @@ function onChangeFile(evt: Event) {
}
const _submit = useSubmit(
'/api/setup/migrate',
{
method: 'post',
},
(data) =>
$fetch('/api/setup/migrate', {
method: 'post',
body: data,
}),
{
revert: async (success) => {
if (success) {