diff --git a/components/product-page/course-details/Course-information.vue b/components/product-page/course-details/Course-information.vue index 467d060..77b6cd2 100644 --- a/components/product-page/course-details/Course-information.vue +++ b/components/product-page/course-details/Course-information.vue @@ -274,7 +274,7 @@ const paymentHandler = async (id) => { }); } try { - const data = await useFetch("/api/user/registerCurse", { + const data = await useFetch("/api/user/registerCourse", { method: "POST", body: { courseId: id, @@ -286,9 +286,9 @@ const paymentHandler = async (id) => { } else { toast.success("ثبت نام انجام شد"); } - setTimeout(() => { - location.reload(); - }, 1000); + // setTimeout(() => { + // location.reload(); + // }, 1000); } catch (error) { toast.error("خطا در برقراری ارتباط"); }