Ver código fonte

isCommunity?: boolean;

visuddhinanda 2 anos atrás
pai
commit
582196d6e8
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      dashboard/src/components/template/Term.tsx

+ 3 - 1
dashboard/src/components/template/Term.tsx

@@ -30,7 +30,7 @@ interface IWidgetTermCtl {
   parentChannelId?: string /**该术语所在译文的channel_id */;
   parentChannelId?: string /**该术语所在译文的channel_id */;
   parentStudioId?: string /**该术语所在译文的studio_id */;
   parentStudioId?: string /**该术语所在译文的studio_id */;
   summary?: string;
   summary?: string;
-  isCommunity?: string;
+  isCommunity?: boolean;
 }
 }
 const TermCtl = ({
 const TermCtl = ({
   id,
   id,
@@ -119,6 +119,7 @@ const TermCtl = ({
                   channelId={termData.channelId}
                   channelId={termData.channelId}
                   parentChannelId={parentChannelId}
                   parentChannelId={parentChannelId}
                   parentStudioId={parentStudioId}
                   parentStudioId={parentStudioId}
+                  community={isCommunity}
                 />
                 />
               </Space>
               </Space>
             </Space>
             </Space>
@@ -202,6 +203,7 @@ const TermCtl = ({
         word={termData?.word}
         word={termData?.word}
         parentChannelId={parentChannelId}
         parentChannelId={parentChannelId}
         parentStudioId={parentStudioId}
         parentStudioId={parentStudioId}
+        community={isCommunity}
       />
       />
     );
     );
   }
   }