Преглед изворни кода

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

visuddhinanda пре 3 година
родитељ
комит
b3b6da9b6a
1 измењених фајлова са 3 додато и 0 уклоњено
  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,
             note: res.data.note,
             lang: res.data.language,
+            channel: res.data.channel
+              ? [res.data.studio.id, res.data.channel?.id]
+              : undefined,
           };
         } else if (typeof channelId !== "undefined") {
           //在channel新建