Ver Fonte

title 优先 title_text

visuddhinanda há 2 anos atrás
pai
commit
1f7d4567a6
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      dashboard/src/components/anthology/EditableTocTree.tsx

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

@@ -85,7 +85,7 @@ const EditableTocTreeWidget = ({
         const toc: ListNodeData[] = json.data.rows.map((item) => {
           return {
             key: item.article_id ? item.article_id : item.title,
-            title: item.title,
+            title: item.title_text ? item.title_text : item.title,
             level: item.level,
             deletedAt: item.deleted_at,
           };