visuddhinanda 2 лет назад
Родитель
Сommit
7a1d89130e
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      dashboard/src/components/fts/FullTextSearchResult.tsx

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

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