Selaa lähdekoodia

按ctrl 在新标签页打开

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
5129a4846d
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      dashboard/src/components/article/ToolButtonToc.tsx

+ 3 - 3
dashboard/src/components/article/ToolButtonToc.tsx

@@ -45,9 +45,9 @@ const ToolButtonTocWidget = ({
         <AnthologyTocTree
         <AnthologyTocTree
           anthologyId={anthologyId}
           anthologyId={anthologyId}
           channels={channels}
           channels={channels}
-          onArticleSelect={(anthologyId: string, keys: string[]) => {
-            if (typeof onSelect !== "undefined" && keys.length > 0) {
-              onSelect(keys[0]);
+          onClick={(anthology: string, article: string, target: string) => {
+            if (typeof onSelect !== "undefined") {
+              onSelect(article, target);
             }
             }
           }}
           }}
         />
         />