diff --git a/apps/fronted/src/components/editor/SidePanel.tsx b/apps/fronted/src/components/editor/SidePanel.tsx index fa2a484..4ee3b17 100644 --- a/apps/fronted/src/components/editor/SidePanel.tsx +++ b/apps/fronted/src/components/editor/SidePanel.tsx @@ -454,7 +454,7 @@ export function SidePanel() {
diff --git a/apps/fronted/src/components/editor/basic/BasicPanel.tsx b/apps/fronted/src/components/editor/basic/BasicPanel.tsx index 61b2706..0194117 100644 --- a/apps/fronted/src/components/editor/basic/BasicPanel.tsx +++ b/apps/fronted/src/components/editor/basic/BasicPanel.tsx @@ -23,14 +23,7 @@ const DEFAULT_FIELD_ORDER: BasicFieldType[] = [ { id: "4", key: "birthDate", label: "出生日期", type: "date", visible: true }, { id: "5", key: "email", label: "电子邮箱", type: "text", visible: true }, { id: "6", key: "phone", label: "电话", type: "text", visible: true }, - { id: "7", key: "location", label: "所在地", type: "text", visible: true }, - { - id: "8", - key: "summary", - label: "个人简介", - type: "textarea", - visible: true - } + { id: "7", key: "location", label: "所在地", type: "text", visible: true } ]; interface CustomFieldProps { @@ -158,15 +151,6 @@ const BasicPanel: React.FC = () => { })); }); - useEffect(() => { - if (!basic.fieldOrder) { - updateBasicInfo({ - ...basic, - fieldOrder: DEFAULT_FIELD_ORDER - }); - } - }, []); - const handleBasicReorder = (newOrder: BasicFieldType[]) => { setBasicFields(newOrder); updateBasicInfo({ diff --git a/apps/fronted/src/components/preview/EducationSection.tsx b/apps/fronted/src/components/preview/EducationSection.tsx index 1c76d66..3f7f197 100644 --- a/apps/fronted/src/components/preview/EducationSection.tsx +++ b/apps/fronted/src/components/preview/EducationSection.tsx @@ -20,7 +20,6 @@ export function EducationSection({ return ( (
(
( - - -

- {basic.summary} -

-
- ); - const renderSection = (sectionId: string) => { switch (sectionId) { - case "basic": - return renderBasicInfo(); case "education": return ( - + {menuSections .filter((section) => section.enabled) diff --git a/apps/fronted/src/components/preview/ProjectItem.tsx b/apps/fronted/src/components/preview/ProjectItem.tsx index a654e33..a0ffa04 100644 --- a/apps/fronted/src/components/preview/ProjectItem.tsx +++ b/apps/fronted/src/components/preview/ProjectItem.tsx @@ -33,10 +33,7 @@ export function ProjectItem({ damping: 50, mass: 1 }} - className={cn( - "space-y-2 relative rounded-lg p-4 pl-0", - isDragging && "z-10" - )} + className={cn("relative rounded-lg pl-0", isDragging && "z-10")} style={{ marginTop: `${globalSettings?.paragraphSpacing}px` }} diff --git a/apps/fronted/src/store/useResumeStore.ts b/apps/fronted/src/store/useResumeStore.ts index 0c35a5a..c0634f7 100644 --- a/apps/fronted/src/store/useResumeStore.ts +++ b/apps/fronted/src/store/useResumeStore.ts @@ -63,7 +63,6 @@ const initialState = { email: "example@email.com", phone: "13800138000", location: "北京市", - summary: "5年前端开发经验...", birthDate: "", icons: {}, photoConfig: DEFAULT_CONFIG, @@ -165,8 +164,10 @@ export const useResumeStore = create()( setDraggingProjectId: (id) => set({ draggingProjectId: id }), - updateBasicInfo: (data) => - set((state) => ({ basic: { ...state.basic, ...data } })), + updateBasicInfo: (data) => { + console.log(data, "data"); + set((state) => ({ basic: { ...state.basic, ...data } })); + }, updateExperience: (id, data) => set((state) => ({ diff --git a/apps/fronted/src/types/resume.ts b/apps/fronted/src/types/resume.ts index 3725667..96d8701 100644 --- a/apps/fronted/src/types/resume.ts +++ b/apps/fronted/src/types/resume.ts @@ -66,7 +66,6 @@ export interface BasicInfo { email: string; phone: string; location: string; - summary: string; icons: Record; employementStatus: string; photo: string;