visuddhinanda 2 лет назад
Родитель
Сommit
e8d25a42b8
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      dashboard/src/components/discussion/InteractiveArea.tsx

+ 4 - 7
dashboard/src/components/discussion/InteractiveArea.tsx

@@ -1,9 +1,10 @@
+import { useEffect, useState } from "react";
 import { Tabs } from "antd";
+
 import { TResType } from "./DiscussionListCard";
 import Discussion from "./Discussion";
-import { useEffect, useState } from "react";
 import { get } from "../../request";
-import QaList from "./QaList";
+import QaBox from "./QaBox";
 
 interface IInteractive {
   ok: boolean;
@@ -78,11 +79,7 @@ const InteractiveAreaWidget = ({ resId, resType }: IWidget) => {
         {
           label: `问答`,
           key: "qa",
-          children: qaCanEdit ? (
-            <Discussion resId={resId} resType={resType} type="qa" />
-          ) : (
-            <QaList resId={resId} resType={resType} />
-          ),
+          children: <QaBox resId={resId} resType={resType} />,
         },
         {
           label: `求助`,