From bea245ced92d3f2d2992659b068e3981aae08ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E8=80=81=E7=99=BD=E5=85=94?= Date: Mon, 11 Aug 2025 11:27:49 +0800 Subject: [PATCH] =?UTF-8?q?FEAT=20=3D>=20=E6=9C=AC=E6=AC=A1=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=A1=B9=E7=9B=AE=E4=B8=BA=EF=BC=9A=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86=E7=9A=84=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E5=B0=86=E6=89=80=E6=9C=89=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E8=B7=AF=E5=BE=84=E5=89=8D=E7=BC=80=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=20"/mine/content"=EF=BC=8C=E4=BB=A5=E6=8F=90=E5=8D=87?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=BB=93=E6=9E=84=E7=9A=84=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E6=80=A7=E5=92=8C=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nkebao/src/pages/mobile/content/list/index.tsx | 2 +- .../pages/mobile/content/materials/form/index.tsx | 4 ++-- .../pages/mobile/content/materials/list/index.tsx | 4 ++-- nkebao/src/pages/mobile/mine/content/list/index.tsx | 2 +- .../mobile/mine/content/materials/form/index.tsx | 4 ++-- .../mobile/mine/content/materials/list/index.tsx | 10 +++------- .../src/pages/mobile/scenarios/plan/list/index.tsx | 6 ------ .../pages/mobile/workspace/auto-group/list/index.tsx | 1 + .../pages/mobile/workspace/group-push/list/index.tsx | 5 +---- nkebao/src/pages/mobile/workspace/main/index.tsx | 2 +- .../mobile/workspace/moments-sync/MomentsSync.tsx | 3 +-- .../traffic-distribution/list/index.module.scss | 2 +- .../workspace/traffic-distribution/list/index.tsx | 7 +------ nkebao/src/router/config.ts | 12 ++++++------ 14 files changed, 23 insertions(+), 41 deletions(-) diff --git a/nkebao/src/pages/mobile/content/list/index.tsx b/nkebao/src/pages/mobile/content/list/index.tsx index c4a60d9a..eaeb3286 100644 --- a/nkebao/src/pages/mobile/content/list/index.tsx +++ b/nkebao/src/pages/mobile/content/list/index.tsx @@ -168,7 +168,7 @@ const ContentLibraryList: React.FC = () => { }; const handleViewMaterials = (id: string) => { - navigate(`/content/materials/${id}`); + navigate(`/mine/content/materials/${id}`); }; const handleSearch = () => { diff --git a/nkebao/src/pages/mobile/content/materials/form/index.tsx b/nkebao/src/pages/mobile/content/materials/form/index.tsx index 2a1ca504..23e628d6 100644 --- a/nkebao/src/pages/mobile/content/materials/form/index.tsx +++ b/nkebao/src/pages/mobile/content/materials/form/index.tsx @@ -158,7 +158,7 @@ const MaterialForm: React.FC = () => { content: isEdit ? "更新成功" : "创建成功", position: "top", }); - navigate(`/content/materials/${libraryId}`); + navigate(`/mine/content/materials/${libraryId}`); } catch (error: unknown) { console.error("保存素材失败:", error); Toast.show({ @@ -171,7 +171,7 @@ const MaterialForm: React.FC = () => { }; const handleBack = () => { - navigate(`/content/materials/${libraryId}`); + navigate(`/mine/content/materials/${libraryId}`); }; if (loading) { diff --git a/nkebao/src/pages/mobile/content/materials/list/index.tsx b/nkebao/src/pages/mobile/content/materials/list/index.tsx index 11c2ed0f..5f131d20 100644 --- a/nkebao/src/pages/mobile/content/materials/list/index.tsx +++ b/nkebao/src/pages/mobile/content/materials/list/index.tsx @@ -72,11 +72,11 @@ const MaterialsList: React.FC = () => { }, [fetchMaterials]); const handleCreateNew = () => { - navigate(`/content/materials/new/${id}`); + navigate(`/mine/content/materials/new/${id}`); }; const handleEdit = (materialId: number) => { - navigate(`/content/materials/edit/${id}/${materialId}`); + navigate(`/mine/content/materials/edit/${id}/${materialId}`); }; const handleDelete = async (materialId: number) => { diff --git a/nkebao/src/pages/mobile/mine/content/list/index.tsx b/nkebao/src/pages/mobile/mine/content/list/index.tsx index 0933c750..4d7f0d5d 100644 --- a/nkebao/src/pages/mobile/mine/content/list/index.tsx +++ b/nkebao/src/pages/mobile/mine/content/list/index.tsx @@ -168,7 +168,7 @@ const ContentLibraryList: React.FC = () => { }; const handleViewMaterials = (id: string) => { - navigate(`/content/materials/${id}`); + navigate(`/mine/content/materials/${id}`); }; const handleRefresh = () => { diff --git a/nkebao/src/pages/mobile/mine/content/materials/form/index.tsx b/nkebao/src/pages/mobile/mine/content/materials/form/index.tsx index 2a1ca504..23e628d6 100644 --- a/nkebao/src/pages/mobile/mine/content/materials/form/index.tsx +++ b/nkebao/src/pages/mobile/mine/content/materials/form/index.tsx @@ -158,7 +158,7 @@ const MaterialForm: React.FC = () => { content: isEdit ? "更新成功" : "创建成功", position: "top", }); - navigate(`/content/materials/${libraryId}`); + navigate(`/mine/content/materials/${libraryId}`); } catch (error: unknown) { console.error("保存素材失败:", error); Toast.show({ @@ -171,7 +171,7 @@ const MaterialForm: React.FC = () => { }; const handleBack = () => { - navigate(`/content/materials/${libraryId}`); + navigate(`/mine/content/materials/${libraryId}`); }; if (loading) { diff --git a/nkebao/src/pages/mobile/mine/content/materials/list/index.tsx b/nkebao/src/pages/mobile/mine/content/materials/list/index.tsx index 11c2ed0f..db963f0b 100644 --- a/nkebao/src/pages/mobile/mine/content/materials/list/index.tsx +++ b/nkebao/src/pages/mobile/mine/content/materials/list/index.tsx @@ -72,11 +72,11 @@ const MaterialsList: React.FC = () => { }, [fetchMaterials]); const handleCreateNew = () => { - navigate(`/content/materials/new/${id}`); + navigate(`/mine/content/materials/new/${id}`); }; const handleEdit = (materialId: number) => { - navigate(`/content/materials/edit/${id}/${materialId}`); + navigate(`/mine/content/materials/edit/${id}/${materialId}`); }; const handleDelete = async (materialId: number) => { @@ -109,11 +109,6 @@ const MaterialsList: React.FC = () => { console.log("查看素材:", materialId); }; - const handleSearch = () => { - setCurrentPage(1); - fetchMaterials(); - }; - const handleRefresh = () => { fetchMaterials(); }; @@ -283,6 +278,7 @@ const MaterialsList: React.FC = () => { <> navigate("/mine/content")} right={