feat: 重整后台设置页信息架构

This commit is contained in:
que01 committed 2026-09-27 19:21:31 +08:00
1 parent f603719b2d
commit ae2eb08fca
5 files changed
+42 -4

No files matched your search

@@ -12,6 +12,7 @@ import {
message,
} from "antd";
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
import { useNavigate } from "react-router-dom";
import { createApiClient } from "../../lib/api.js";
import { ApiClientError } from "@personal-brand/api-client";
import type {
@@ -67,6 +68,7 @@ function supportsIndustry(
}
export function WorkspacePage() {
const navigate = useNavigate();
const client = createApiClient();
const queryClient = useQueryClient();
const [fieldOpen, setFieldOpen] = useState(false);
@@ -240,10 +242,23 @@ export function WorkspacePage() {
return (
<Space direction="vertical" size="large" style={{ width: "100%" }}>
<AdminPageHeader
title="模板与设置"
description="用行业模板组织业务表达,同时保留个人品牌定位、信任内容和合作方式的长期扩展空间。"
title="模板与表单设置"
description="日常内容请从品牌表达、业务提供项和信任内容进入;这里主要管理模板、咨询入口和负责人设置。"
/>
<Card title="运行时工作空间" loading={runtimeQuery.isLoading}>
<Card title="先完成日常配置" style={{ marginBottom: 24 }}>
<Typography.Paragraph type="secondary">
下面这些入口面向日常经营,不需要理解模板或技术设置。完成后回到“配置与发布”统一检查并上线。
</Typography.Paragraph>
<Space wrap>
<Button onClick={() => navigate("/admin/brand")}>完善品牌表达</Button>
<Button onClick={() => navigate("/admin/services")}>添加业务提供项</Button>
<Button onClick={() => navigate("/admin/trust")}>补充信任内容</Button>
<Button type="primary" onClick={() => navigate("/admin/publication")}>
检查并发布
</Button>
</Space>
</Card>
<Card title="小程序当前状态" loading={runtimeQuery.isLoading}>
{runtimeQuery.isError ? (
<Typography.Text type="danger">公开运行时工作空间暂时无法加载。</Typography.Text>
) : (
+1 -1
View File
@@ -198,7 +198,7 @@ function Dashboard({ onLogout, role }: { onLogout: () => void; role: string }) {
type: "group" as const,
label: "系统管理",
children: [
{ key: "workspace", label: "模板与设置" },
{ key: "workspace", label: "模板与表单设置" },
{ key: "capabilities", label: "能力插件" },
{ key: "members", label: "团队成员" },
],