Przeglądaj źródła

Merge pull request #2077 from visuddhinanda/agile

协作文集可以添加自己的文章
visuddhinanda 1 rok temu
rodzic
commit
d339db84b9

+ 3 - 1
dashboard/src/components/anthology/EditableTocTree.tsx

@@ -26,6 +26,7 @@ import { fullUrl, randomString } from "../../utils";
 interface IWidget {
   anthologyId?: string;
   studioName?: string;
+  myStudioName?: string;
   anthology?: IAnthologyDataResponse;
   onSelect?: Function;
 }
@@ -33,6 +34,7 @@ const EditableTocTreeWidget = ({
   anthologyId,
   anthology,
   studioName,
+  myStudioName,
   onSelect,
 }: IWidget) => {
   const [tocData, setTocData] = useState<ListNodeData[]>([]);
@@ -105,7 +107,7 @@ const EditableTocTreeWidget = ({
         addOnArticle={addArticle}
         addFileButton={
           <ArticleListModal
-            studioName={studioName}
+            studioName={myStudioName}
             trigger={<Button icon={<FolderOpenOutlined />}>添加</Button>}
             multiple={false}
             onSelect={(id: string, title: string) => {

+ 1 - 0
dashboard/src/pages/studio/anthology/edit.tsx

@@ -67,6 +67,7 @@ const Widget = () => {
               children: (
                 <EditableTocTree
                   studioName={anthologyInfo?.studio.realName}
+                  myStudioName={studioname}
                   anthologyId={anthology_id}
                   anthology={anthologyInfo}
                 />