rerendering page when updating menu position
This commit is contained in:
@@ -112,7 +112,10 @@ const save = () => {
|
|||||||
timeout.value && clearTimeout(timeout.value)
|
timeout.value && clearTimeout(timeout.value)
|
||||||
timeout.value = setTimeout(() => {
|
timeout.value = setTimeout(() => {
|
||||||
return useForm({ menus: menus.value }).patch(route('superuser.menu.save'), {
|
return useForm({ menus: menus.value }).patch(route('superuser.menu.save'), {
|
||||||
onFinish: () => clearTimeout(timeout.value)
|
onFinish: () => {
|
||||||
|
clearTimeout(timeout.value)
|
||||||
|
Inertia.get(route(route().current()))
|
||||||
|
}
|
||||||
}, 100)
|
}, 100)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user