Selaa lähdekoodia

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

visuddhinanda 3 vuotta sitten
vanhempi
sitoutus
b3b6da9b6a
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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新建