diff --git a/src/page/mod-codes/index.tsx b/src/page/mod-codes/index.tsx index 7cbb541..43eafba 100644 --- a/src/page/mod-codes/index.tsx +++ b/src/page/mod-codes/index.tsx @@ -1,4 +1,16 @@ -import { App, Button, Card, Col, Pagination, Popconfirm, Row, Select, Space, Tag, Typography } from "antd" +import { + App, + Button, + Card, + Col, + Pagination, + Popconfirm, + Row, + Select, + Space, + Tag, + Typography, +} from "antd" import { useCallback, useEffect, useMemo, useState } from "react" import { Link, useSearchParams } from "react-router-dom" import { ModificationApi, TagApi } from "@/api" @@ -114,8 +126,7 @@ export default function ModCodesPage() { onClick={() => { setSelectedTags([]) setPage(1) - }} - > + }}> 清除筛选 @@ -138,7 +149,10 @@ export default function ModCodesPage() { extra={ user ? (
- handleDelete(modification)} - > - @@ -195,15 +212,23 @@ export default function ModCodesPage() {
{(modification.accessories || []).map((accessory, accessoryIndex) => ( -
+
- {accessory.slotName || "未填写槽位"} - {accessory.accessoryName || "未填写配件"} + + {accessory.slotName || "未填写槽位"} + + + {accessory.accessoryName || "未填写配件"} +
{(accessory.tunings?.length || 0) > 0 ? (
{accessory.tunings.map((tuning, tuningIndex) => ( - + {tuning.tuningName || "未命名"}: {tuning.tuningValue ?? "-"} ))}