diff --git a/apps/admin/src/features/brand/PresentationEditor.tsx b/apps/admin/src/features/brand/PresentationEditor.tsx index 38db160..d1d2feb 100644 --- a/apps/admin/src/features/brand/PresentationEditor.tsx +++ b/apps/admin/src/features/brand/PresentationEditor.tsx @@ -399,7 +399,8 @@ export function PresentationEditor({ mutationFn: (values: PresentationValues) => { const nextConfig = applyPresentationValues(config, sections, values); // 页面内容编辑不提交模板选择,避免触发切换模板的权限校验。 - const { visualTemplateKey: _visualTemplateKey, ...contentConfig } = nextConfig; + const contentConfig = { ...nextConfig }; + delete contentConfig.visualTemplateKey; const standard = applyStandardBrandValues( brand as unknown as Record, sections, diff --git a/packages/api-client/src/index.ts b/packages/api-client/src/index.ts index 5203cf1..a68f964 100644 --- a/packages/api-client/src/index.ts +++ b/packages/api-client/src/index.ts @@ -8,6 +8,7 @@ import type { RuntimeCapability, RuntimeInquiryForm, RuntimeOffering, + RuntimeWorkspace, RuntimeTrustItem, ThemeManifest, } from "@personal-brand/types"; @@ -699,7 +700,7 @@ export class ApiClient { }> { return this.request("/admin/workspace"); } - getAdminPreviewWorkspace(): Promise { + getAdminPreviewWorkspace(): Promise { return this.request("/admin/workspace/preview"); } listAdminReleases(): Promise {