rerendering page when updating menu position

This commit is contained in:
Geriano
2022-07-29 19:03:37 +07:00
parent 4ebdf78755
commit 0d77e4ba33

View File

@@ -112,7 +112,10 @@ const save = () => {
timeout.value && clearTimeout(timeout.value)
timeout.value = setTimeout(() => {
return useForm({ menus: menus.value }).patch(route('superuser.menu.save'), {
onFinish: () => clearTimeout(timeout.value)
onFinish: () => {
clearTimeout(timeout.value)
Inertia.get(route(route().current()))
}
}, 100)
})
}