From bd0b3fe98314f1edd0712886f3aa1b8ed7bbc8db Mon Sep 17 00:00:00 2001 From: HAM!DREZA Date: Tue, 31 Dec 2024 11:55:27 +0330 Subject: [PATCH] update --- .../product-page/course-details/Course-information.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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("خطا در برقراری ارتباط"); }