visuddhinanda 1 год назад
Родитель
Сommit
164cba6ff5
1 измененных файлов с 8 добавлено и 10 удалено
  1. 8 10
      dashboard/src/components/course/CourseMemberList.tsx

+ 8 - 10
dashboard/src/components/course/CourseMemberList.tsx

@@ -99,6 +99,14 @@ const CourseMemberListWidget = ({ courseId, onSelect }: IWidget) => {
           description: {
             dataIndex: "desc",
             search: false,
+            render(dom, entity, index, action, schema) {
+              return (
+                <div>
+                  {"channel:"}
+                  {entity.channel?.name ?? "未绑定"}
+                </div>
+              );
+            },
           },
           subTitle: {
             search: false,
@@ -116,16 +124,6 @@ const CourseMemberListWidget = ({ courseId, onSelect }: IWidget) => {
               );
             },
           },
-          content: {
-            render(dom, entity, index, action, schema) {
-              return (
-                <div>
-                  {"channel:"}
-                  {entity.channel?.name ?? "未绑定"}
-                </div>
-              );
-            },
-          },
           actions: {
             search: false,
             render: (text, row, index, action) => {