Selaa lähdekoodia

路径去掉书名

visuddhinanda 2 vuotta sitten
vanhempi
sitoutus
2e84439eb4
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      dashboard/src/components/fts/FullTextSearchResult.tsx

+ 3 - 2
dashboard/src/components/fts/FullTextSearchResult.tsx

@@ -5,6 +5,7 @@ import { Link } from "react-router-dom";
 import { get } from "../../request";
 import { get } from "../../request";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 import TocPath, { ITocPathNode } from "../corpus/TocPath";
 import Marked from "../general/Marked";
 import Marked from "../general/Marked";
+import PaliText from "../template/Wbw/PaliText";
 import "./search.css";
 import "./search.css";
 
 
 const { Title, Text } = Typography;
 const { Title, Text } = Typography;
@@ -125,11 +126,11 @@ const FullTxtSearchResultWidget = ({
       renderItem={(item) => (
       renderItem={(item) => (
         <List.Item>
         <List.Item>
           <div>
           <div>
-            <Text>{item.path ? item.path[0].title : ""}</Text>
+            <PaliText text={item.path ? item.path[0].title : ""} />
           </div>
           </div>
           <div>
           <div>
             <Space style={{ color: "gray", fontSize: "80%" }}>
             <Space style={{ color: "gray", fontSize: "80%" }}>
-              <TocPath data={item.path} style={{ fontSize: "80%" }} />
+              <TocPath data={item.path?.slice(1)} style={{ fontSize: "80%" }} />
               {"/"}
               {"/"}
               <Tag style={{ fontSize: "80%" }}>{item.paragraph}</Tag>
               <Tag style={{ fontSize: "80%" }}>{item.paragraph}</Tag>
             </Space>
             </Space>