Browse Source

add page in ISearchView

visuddhinanda 2 năm trước cách đây
mục cha
commit
7a1d89130e

+ 4 - 1
dashboard/src/components/fts/FullTextSearchResult.tsx

@@ -39,7 +39,7 @@ interface IFtsItem {
   path?: ITocPathNode[];
   path?: ITocPathNode[];
 }
 }
 
 
-export type ISearchView = "pali" | "title";
+export type ISearchView = "pali" | "title" | "page";
 interface IWidget {
 interface IWidget {
   keyWord?: string;
   keyWord?: string;
   tags?: string[];
   tags?: string[];
@@ -148,6 +148,9 @@ const FullTxtSearchResultWidget = ({
           case "title":
           case "title":
             link = `/article/chapter/${item.book}-${item.paragraph}`;
             link = `/article/chapter/${item.book}-${item.paragraph}`;
             break;
             break;
+          case "page":
+            link = `/article/chapter/${item.book}-${item.paragraph}`;
+            break;
           default:
           default:
             break;
             break;
         }
         }