From ac9f6b3db12c841cba9d7ab643b233ca93556b4c Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Sat, 11 Jul 2026 21:37:24 +0800 Subject: [PATCH] refactor(structure): remove workbench header - remove top action bar with refresh, publish and reset content buttons - delete all associated CSS styling for the structure header - remove unused lucide icon and API function imports - simplify the structure workbench grid layout --- src/pages/structure/StructurePage.tsx | 48 ------------------------ src/styles.css | 54 +-------------------------- 2 files changed, 2 insertions(+), 100 deletions(-) diff --git a/src/pages/structure/StructurePage.tsx b/src/pages/structure/StructurePage.tsx index 764cdb8..69ba179 100644 --- a/src/pages/structure/StructurePage.tsx +++ b/src/pages/structure/StructurePage.tsx @@ -4,9 +4,7 @@ import { ArrowUp, ChevronRight, Plus, - RefreshCcw, Save, - Send, Trash2, X, } from "lucide-react"; @@ -16,9 +14,7 @@ import { deleteSiteConfigItem, getProducts, getSiteConfig, - publishSite, reorderSiteConfigItems, - resetGuizhouContent, updateSiteConfigItem, } from "@/api"; import type { Product, SiteConfig, SiteItemPatch, SiteModule } from "@/api"; @@ -598,54 +594,10 @@ export function StructurePage({ } }; - const publish = async () => { - const result = await publishSite(); - setMessage(""); - notify({ tone: "success", title: "已生成发布版本", message: result.title }); - }; - - const resetToGuizhou = async () => { - const result = await resetGuizhouContent(); - setMessage(""); - notify({ - tone: "success", - title: "贵州内容已重置", - message: "后台配置、商品库和素材引用已切换为贵州省内定制游。", - }); - setSelectedId(""); - setDraft({}); - onDirtyChange(false); - await load(); - }; - if (!config) return ; return (
-
-
-

{fixedPage ? activePage.title : "小程序维护地图"}

-

- {fixedPage - ? activePage.subtitle - : "按用户看到的前台页面组织后台,逐层展开到可维护内容。"} -

-
-
- - - -
-
{!fixedPage ? (