From 1d640abc6e5f723d90430d0cb00ccccfbe5437fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AC=94=E8=AE=B0=E6=9C=AC=E9=87=8C=E7=9A=84=E6=B0=B8?= =?UTF-8?q?=E5=B9=B3?= Date: Mon, 14 Jul 2025 14:42:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9C=AC=E6=AC=A1=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=E5=A6=82=E4=B8=8B=20?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=82=AC=E6=B5=AE=E6=A8=A1=E5=9D=97=E5=96=84?= =?UTF-8?q?=E5=BE=85=E4=BD=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nkebao/src/pages/content/Content.tsx | 5 +---- nkebao/src/pages/workspace/moments-sync/new.tsx | 10 ---------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/nkebao/src/pages/content/Content.tsx b/nkebao/src/pages/content/Content.tsx index 02aea9bbc..211bb080b 100644 --- a/nkebao/src/pages/content/Content.tsx +++ b/nkebao/src/pages/content/Content.tsx @@ -105,9 +105,6 @@ function CardMenu({ onView, onEdit, onDelete, onViewMaterials }: { padding: 4, }} > -
{ onView(); setOpen(false); }} style={{ padding: 8, cursor: "pointer", display: "flex", alignItems: "center", borderRadius: 6, fontSize: 14, gap: 6, transition: "background .2s" }} onMouseOver={e => (e.currentTarget as HTMLDivElement).style.background="#f5f5f5"} onMouseOut={e => (e.currentTarget as HTMLDivElement).style.background=""}> - 查看 -
{ onEdit(); setOpen(false); }} style={{ padding: 8, cursor: "pointer", display: "flex", alignItems: "center", borderRadius: 6, fontSize: 14, gap: 6, transition: "background .2s" }} onMouseOver={e => (e.currentTarget as HTMLDivElement).style.background="#f5f5f5"} onMouseOut={e => (e.currentTarget as HTMLDivElement).style.background=""}> 编辑
@@ -210,7 +207,7 @@ export default function Content() { }; const handleEdit = (id: string) => { - navigate(`/content/${id}/edit`); + navigate(`/content/new/${id}`); }; const handleDelete = async (id: string) => { diff --git a/nkebao/src/pages/workspace/moments-sync/new.tsx b/nkebao/src/pages/workspace/moments-sync/new.tsx index 3d8c3b703..b575393fc 100644 --- a/nkebao/src/pages/workspace/moments-sync/new.tsx +++ b/nkebao/src/pages/workspace/moments-sync/new.tsx @@ -405,16 +405,6 @@ export default function NewMomentsSyncTask() { )} - -
-
- -
-
); } \ No newline at end of file