Browse Source

标题宽度固定在300

visuddhinanda 2 years ago
parent
commit
8806d4011d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      dashboard/src/pages/studio/course/list.tsx

+ 3 - 2
dashboard/src/pages/studio/course/list.tsx

@@ -148,6 +148,7 @@ const Widget = () => {
             key: "title",
             key: "title",
             tip: "过长会自动收缩",
             tip: "过长会自动收缩",
             ellipsis: true,
             ellipsis: true,
+            width: 300,
             render: (text, row, index, action) => {
             render: (text, row, index, action) => {
               return (
               return (
                 <Space key={index}>
                 <Space key={index}>
@@ -210,7 +211,7 @@ const Widget = () => {
             }),
             }),
             dataIndex: "type",
             dataIndex: "type",
             key: "type",
             key: "type",
-            width: 100,
+            width: 80,
             search: false,
             search: false,
             filters: true,
             filters: true,
             onFilter: true,
             onFilter: true,
@@ -350,7 +351,7 @@ const Widget = () => {
           console.log("url", url);
           console.log("url", url);
 
 
           const res = await get<ICourseListResponse>(url);
           const res = await get<ICourseListResponse>(url);
-          console.log("api data", res);
+          console.debug("course data", res);
           const items: DataItem[] = res.data.rows.map((item, id) => {
           const items: DataItem[] = res.data.rows.map((item, id) => {
             return {
             return {
               sn: id + offset + 1,
               sn: id + offset + 1,