fix push on submit

This commit is contained in:
2023-02-28 15:34:59 +10:00
parent 361ead1351
commit ef048f77bb

View File

@@ -208,8 +208,10 @@ const handleSubmit = async () => {
type: "success",
});
useRouter().push({ name: "dashboard-post-list" });
const router = useRouter();
router.push({ name: "dashboard-post-list" });
} catch (error) {
console.log(error);
form.apiErrors(error);
}
};