Browse Source

:bug: 按照id获取没有显示版本信息

visuddhinanda 3 years ago
parent
commit
b3b6da9b6a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dashboard/src/components/term/TermEdit.tsx

+ 3 - 0
dashboard/src/components/term/TermEdit.tsx

@@ -122,6 +122,9 @@ const Widget = ({ id, word, channelId, studioName, onUpdate }: IWidget) => {
             meaning2: meaning2,
             meaning2: meaning2,
             note: res.data.note,
             note: res.data.note,
             lang: res.data.language,
             lang: res.data.language,
+            channel: res.data.channel
+              ? [res.data.studio.id, res.data.channel?.id]
+              : undefined,
           };
           };
         } else if (typeof channelId !== "undefined") {
         } else if (typeof channelId !== "undefined") {
           //在channel新建
           //在channel新建