diff --git a/src/main_pages/components/MyselfPageContent.tsx b/src/main_pages/components/MyselfPageContent.tsx index cbafe49..1fa85d3 100644 --- a/src/main_pages/components/MyselfPageContent.tsx +++ b/src/main_pages/components/MyselfPageContent.tsx @@ -238,7 +238,7 @@ const MyselfPageContent: React.FC = () => { loadMoreMatches={() => {}} collapse={true} style={{ paddingBottom: 0, overflow: "hidden" }} - listLoadErrorWrapperHeight="267px" + listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" defaultShowNum={3} @@ -259,7 +259,7 @@ const MyselfPageContent: React.FC = () => { loadMoreMatches={() => {}} collapse={true} style={{ paddingBottom: "90px", overflow: "hidden" }} - listLoadErrorWrapperHeight="220px" + listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" defaultShowNum={3} diff --git a/src/user_pages/edit/index.tsx b/src/user_pages/edit/index.tsx index 329d65b..f23c07d 100644 --- a/src/user_pages/edit/index.tsx +++ b/src/user_pages/edit/index.tsx @@ -23,11 +23,12 @@ const EditProfilePage: React.FC = () => { // 表单状态,基于store中的用户信息初始化 const getInitialFormData = () => { const info = user_info as UserInfoType; + debugger; return { nickname: info?.nickname ?? "", personal_profile: info?.personal_profile ?? "", occupation: info?.occupation ?? "", - ntrp_level: info?.ntrp_level ?? "4.0", + ntrp_level: info?.ntrp_level ?? "2.5", phone: info?.phone ?? "", gender: info?.gender ?? "", birthday: info?.birthday ?? "2000-01-01", @@ -68,7 +69,7 @@ const EditProfilePage: React.FC = () => { nickname: info?.nickname ?? "", personal_profile: info?.personal_profile ?? "", occupation: info?.occupation ?? "", - ntrp_level: info?.ntrp_level ?? "4.0", + ntrp_level: info?.ntrp_level ?? "2.5", phone: info?.phone ?? "", gender: info?.gender ?? "", birthday: info?.birthday ?? "2000-01-01", @@ -851,9 +852,7 @@ const EditProfilePage: React.FC = () => { // img={(user_info as UserInfoType)?.avatar_url} visible={ntrp_picker_visible} setvisible={setNtrpPickerVisible} - value={ - form_data.ntrp_level === "0" ? ["2.5"] : [form_data.ntrp_level] - } + value={form_data.ntrp_level === "" ? ["2.5"] : [form_data.ntrp_level]} onChange={handle_ntrp_level_change} /> )} diff --git a/src/user_pages/other/index.tsx b/src/user_pages/other/index.tsx index a8b84e2..acda85c 100644 --- a/src/user_pages/other/index.tsx +++ b/src/user_pages/other/index.tsx @@ -313,7 +313,7 @@ const OtherUserPage: React.FC = () => { loadMoreMatches={() => {}} collapse={true} style={{ paddingBottom: 0, overflow: "hidden" }} - listLoadErrorWrapperHeight="267px" + listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" defaultShowNum={3} @@ -356,7 +356,7 @@ const OtherUserPage: React.FC = () => { loadMoreMatches={() => {}} collapse={true} style={{ paddingBottom: "90px", overflow: "hidden" }} - listLoadErrorWrapperHeight="220px" + listLoadErrorWrapperHeight="fit-content" listLoadErrorWidth="320px" listLoadErrorHeight="152px" defaultShowNum={3}