visuddhinanda 1 vuosi sitten
vanhempi
sitoutus
ea7283db1e
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      dashboard/src/components/tag/TagsOnItem.tsx

+ 3 - 0
dashboard/src/components/tag/TagsOnItem.tsx

@@ -70,14 +70,17 @@ const TagsOnItem = ({
                     studio: studioName,
                     studio: studioName,
                     course: courseId,
                     course: courseId,
                   };
                   };
+                  console.info("tag create api request", url, data);
                   const json = await post<ITagMapRequest, ITagMapResponse>(
                   const json = await post<ITagMapRequest, ITagMapResponse>(
                     url,
                     url,
                     data
                     data
                   );
                   );
+                  console.info("tag create api response", json);
                   if (json.ok) {
                   if (json.ok) {
                     //新建课程成功后刷新
                     //新建课程成功后刷新
                     ref.current?.reload();
                     ref.current?.reload();
                   } else {
                   } else {
+                    message.error(json.message);
                     console.error(json.message);
                     console.error(json.message);
                   }
                   }
                   setOpenCreate(false);
                   setOpenCreate(false);