Forráskód Böngészése

页码前加空格

visuddhinanda 2 éve
szülő
commit
9e8a7f5fe8
1 módosított fájl, 2 hozzáadás és 3 törlés
  1. 2 3
      dashboard/src/components/template/QuoteLink.tsx

+ 2 - 3
dashboard/src/components/template/QuoteLink.tsx

@@ -33,7 +33,7 @@ const QuoteLinkCtl = ({
   found,
 }: IWidgetQuoteLinkCtl) => {
   const [tpl, setTpl] = useState<string>();
-  let textShow = volume === 0 ? page : ` ${volume}.${page}`;
+  let textShow = volume === 0 ? ` ${page}` : ` ${volume}.${page}`;
   if (type === "c") {
     textShow = ` ${chapter}`;
   }
@@ -68,8 +68,7 @@ const QuoteLinkCtl = ({
               title
             ) : (
               <>
-                <TermCtl {...term} compact={true} />
-                {textShow}
+                <TermCtl {...term} compact={true} /> {textShow}
               </>
             )
           }