Ver código fonte

相似句模式译文跟随用户选择的channel

visuddhinanda 1 ano atrás
pai
commit
f027c472c0

+ 1 - 1
dashboard/src/components/template/SentEdit/SentCanRead.tsx

@@ -63,7 +63,7 @@ const SentCanReadWidget = ({
     const sentId = `${book}-${para}-${wordStart}-${wordEnd}`;
     let url = `/v2/sentence?view=sent-can-read&sentence=${sentId}&type=${type}&mode=edit&html=true`;
     url += channelsId ? `&excludes=${channelsId.join()}` : "";
-    if (type === "commentary") {
+    if (type === "commentary" || type === "similar") {
       url += channelsId ? `&channels=${channelsId.join()}` : "";
     }
     console.log("url", url);