Parcourir la source

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

visuddhinanda il y a 3 ans
Parent
commit
b3b6da9b6a
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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新建