fix: 修复编辑器与 API Client lint 问题

This commit is contained in:
que01 committed 2026-10-10 16:33:31 +08:00
1 parent 22a82dbfba
commit f57e1b1336
2 files changed
+4 -2

No files matched your search

@@ -399,7 +399,8 @@ export function PresentationEditor({
mutationFn: (values: PresentationValues) => { mutationFn: (values: PresentationValues) => {
const nextConfig = applyPresentationValues(config, sections, values); const nextConfig = applyPresentationValues(config, sections, values);
// 页面内容编辑不提交模板选择,避免触发切换模板的权限校验。 // 页面内容编辑不提交模板选择,避免触发切换模板的权限校验。
const { visualTemplateKey: _visualTemplateKey, ...contentConfig } = nextConfig; const contentConfig = { ...nextConfig };
delete contentConfig.visualTemplateKey;
const standard = applyStandardBrandValues( const standard = applyStandardBrandValues(
brand as unknown as Record<string, unknown>, brand as unknown as Record<string, unknown>,
sections, sections,
+2 -1
View File
@@ -8,6 +8,7 @@ import type {
RuntimeCapability, RuntimeCapability,
RuntimeInquiryForm, RuntimeInquiryForm,
RuntimeOffering, RuntimeOffering,
RuntimeWorkspace,
RuntimeTrustItem, RuntimeTrustItem,
ThemeManifest, ThemeManifest,
} from "@personal-brand/types"; } from "@personal-brand/types";
@@ -699,7 +700,7 @@ export class ApiClient {
}> { }> {
return this.request("/admin/workspace"); return this.request("/admin/workspace");
} }
getAdminPreviewWorkspace(): Promise<import("@personal-brand/types").RuntimeWorkspace> { getAdminPreviewWorkspace(): Promise<RuntimeWorkspace> {
return this.request("/admin/workspace/preview"); return this.request("/admin/workspace/preview");
} }
listAdminReleases(): Promise<BrandReleaseSummary[]> { listAdminReleases(): Promise<BrandReleaseSummary[]> {