From 01db8808c4fb24ade840859e523d457ec5607f1e Mon Sep 17 00:00:00 2001 From: ditiqi Date: Mon, 24 Feb 2025 19:34:58 +0800 Subject: [PATCH] add --- .../models/course/editor/context/CourseEditorContext.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/models/course/editor/context/CourseEditorContext.tsx b/apps/web/src/components/models/course/editor/context/CourseEditorContext.tsx index 82f4d4d..913bf34 100755 --- a/apps/web/src/components/models/course/editor/context/CourseEditorContext.tsx +++ b/apps/web/src/components/models/course/editor/context/CourseEditorContext.tsx @@ -115,7 +115,7 @@ export function CourseFormProvider({ }); message.success("课程更新成功!"); } else { - const result = await create.mutateAsync({ + const result = await createCourse.mutateAsync({ courseDetail: { data: { title: formattedValues.title || "12345",