visuddhinanda 3 лет назад
Родитель
Сommit
72e2b26e3a
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      dashboard/src/components/comment/CommentBox.tsx

+ 10 - 2
dashboard/src/components/comment/CommentBox.tsx

@@ -56,13 +56,21 @@ const Widget = ({ trigger, resId, resType, onCommentCountChange }: IWidget) => {
           }}
         />
         <Drawer
-          title="Two-level Drawer"
+          title="回答"
           width={480}
           closable={false}
           onClose={onChildrenDrawerClose}
           open={childrenDrawer}
         >
-          <CommentTopic comment={topicComment} resId="" />
+          {resId && resType ? (
+            <CommentTopic
+              comment={topicComment}
+              resId={resId}
+              resType={resType}
+            />
+          ) : (
+            <></>
+          )}
         </Drawer>
       </Drawer>
     </>