visuddhinanda 3 лет назад
Родитель
Сommit
1df2ba7c17
1 измененных файлов с 9 добавлено и 3 удалено
  1. 9 3
      dashboard/src/pages/studio/anthology/list.tsx

+ 9 - 3
dashboard/src/pages/studio/anthology/list.tsx

@@ -2,7 +2,7 @@ import { useParams } from "react-router-dom";
 import { ProTable } from "@ant-design/pro-components";
 import { useIntl } from "react-intl";
 import { Link } from "react-router-dom";
-import { Layout, Space, Table } from "antd";
+import { Layout, Space, Table, Typography } from "antd";
 import { PlusOutlined } from "@ant-design/icons";
 import type { MenuProps } from "antd";
 import { Button, Dropdown, Menu, Popover } from "antd";
@@ -13,6 +13,8 @@ import { IAnthologyListResponse } from "../../../components/api/Article";
 import { get } from "../../../request";
 import { PublicityValueEnum } from "../../../components/studio/table";
 
+const { Title, Text } = Typography;
+
 const onMenuClick: MenuProps["onClick"] = (e) => {
 	console.log("click", e);
 };
@@ -75,9 +77,13 @@ const Widget = () => {
 							return (
 								<div>
 									<div>
-										<Link to="edit/12345">{row.title}</Link>
+										<Link
+											to={`/studio/${studioname}/anthology/${row.id}/edit`}
+										>
+											{row.title}
+										</Link>
 									</div>
-									<div>{row.subtitle}</div>
+									<Text type="secondary">{row.subtitle}</Text>
 								</div>
 							);
 						},