fix: 修复编辑器与 API Client lint 问题
This commit is contained in:
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) => {
|
||||
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<string, unknown>,
|
||||
sections,
|
||||
|
||||
@@ -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<import("@personal-brand/types").RuntimeWorkspace> {
|
||||
getAdminPreviewWorkspace(): Promise<RuntimeWorkspace> {
|
||||
return this.request("/admin/workspace/preview");
|
||||
}
|
||||
listAdminReleases(): Promise<BrandReleaseSummary[]> {
|
||||
|
||||
Reference in new issue
Block a user