Przeglądaj źródła

:bug: studio术语导出缺少stuidioname

visuddhinanda 3 lat temu
rodzic
commit
0227dda058

+ 2 - 0
dashboard/src/components/term/TermExport.tsx

@@ -27,6 +27,8 @@ const Widget = ({ channelId, studioName }: IWidget) => {
         let url = `/v2/terms-export?view=`;
         let url = `/v2/terms-export?view=`;
         if (typeof channelId !== "undefined") {
         if (typeof channelId !== "undefined") {
           url += `channel&id=${channelId}`;
           url += `channel&id=${channelId}`;
+        } else if (typeof studioName !== "undefined") {
+          url += `studio&name=${studioName}`;
         }
         }
         setLoading(true);
         setLoading(true);
         get<IExportResponse>(url)
         get<IExportResponse>(url)

+ 1 - 1
dashboard/src/components/term/TermList.tsx

@@ -324,7 +324,7 @@ const Widget = ({ studioName, channelId }: IWidget) => {
               ref.current?.reload();
               ref.current?.reload();
             }}
             }}
           />,
           />,
-          <TermExport channelId={channelId} />,
+          <TermExport channelId={channelId} studioName={studioName} />,
           <TermModal
           <TermModal
             trigger={
             trigger={
               <Button key="button" icon={<PlusOutlined />} type="primary">
               <Button key="button" icon={<PlusOutlined />} type="primary">