Explorar el Código

update 后 reload

visuddhinanda hace 3 años
padre
commit
de7e38667f
Se han modificado 1 ficheros con 7 adiciones y 1 borrados
  1. 7 1
      dashboard/src/components/term/TermList.tsx

+ 7 - 1
dashboard/src/components/term/TermList.tsx

@@ -209,7 +209,13 @@ const Widget = ({ studioName, channelId }: IWidget) => {
                     },
                   }}
                 >
-                  <TermModal trigger={"编辑"} id={row.id} />
+                  <TermModal
+                    trigger={"编辑"}
+                    id={row.id}
+                    studioName={studioName}
+                    channelId={channelId}
+                    onUpdate={() => ref.current?.reload()}
+                  />
                 </Dropdown.Button>,
               ];
             },