소스 검색

新建article增加anthologyId参数

visuddhinanda 2 년 전
부모
커밋
b004e4e841
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      dashboard/src/components/anthology/EditableTocTree.tsx

+ 2 - 0
dashboard/src/components/anthology/EditableTocTree.tsx

@@ -127,6 +127,7 @@ const EditableTocTreeWidget = ({
           node: TreeNodeData
         ): Promise<TreeNodeData | undefined> => {
           if (typeof studioName === "undefined") {
+            console.log("studio", studioName);
             return;
           }
           const res = await post<IArticleCreateRequest, IArticleResponse>(
@@ -135,6 +136,7 @@ const EditableTocTreeWidget = ({
               title: "new article",
               lang: getUiLang(),
               studio: studioName,
+              anthologyId: anthologyId,
             }
           );