fix: resolve TypeScript type error in EditingPlanner (#130)
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Failing after 210h37m15s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h37m18s
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Failing after 210h37m15s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h37m18s
This commit was merged in pull request #130.
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
type TitleConfig,
|
||||
type SubtitleConfig,
|
||||
type BgmConfig,
|
||||
type SaveTemplatePayload,
|
||||
} from '@/api/editingPlanner';
|
||||
|
||||
/* ── 子组件 ── */
|
||||
@@ -153,7 +154,7 @@ const EditingPlanner: React.FC = () => {
|
||||
});
|
||||
|
||||
const updateMutation = useMutation({
|
||||
mutationFn: ({ id, data }: { id: string; data: Record<string, unknown> }) => updateEditingTemplate(id, data),
|
||||
mutationFn: ({ id, data }: { id: string; data: SaveTemplatePayload }) => updateEditingTemplate(id, data),
|
||||
onSuccess: () => {
|
||||
message.success('模板已更新');
|
||||
queryClient.invalidateQueries({ queryKey: ['editing-templates'] });
|
||||
|
||||
Reference in New Issue
Block a user