Browse Source

Merge pull request #2033 from visuddhinanda/agile

注疏channel 要传 channels参数
visuddhinanda 2 years ago
parent
commit
483f0df455
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dashboard/src/components/template/SentEdit/SentCanRead.tsx

+ 3 - 0
dashboard/src/components/template/SentEdit/SentCanRead.tsx

@@ -43,6 +43,9 @@ 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") {
+      url += channelsId ? `&channels=${channelsId.join()}` : "";
+    }
     console.log("url", url);
     get<ISentenceListResponse>(url)
       .then((json) => {