diff --git a/src/pages/UserCenter/UserProfile.jsx b/src/pages/UserCenter/UserProfile.jsx
index de523bd..9170652 100644
--- a/src/pages/UserCenter/UserProfile.jsx
+++ b/src/pages/UserCenter/UserProfile.jsx
@@ -2,7 +2,6 @@
 import axios from 'axios';
 import './UserProfile.css';
 import { useUser } from '../../context/UserContext';
-
 const DEFAULT_AVATAR_URL = `${process.env.PUBLIC_URL}/default-avatar.png`;
 
 const UserProfile = () => {
@@ -30,9 +29,9 @@
         }
 
         const profile = {
-          avatarUrl: raw.avatarUrl
-            ? `${process.env.REACT_APP_AVATAR_BASE_URL}${raw.avatarUrl}`
-            : DEFAULT_AVATAR_URL,
+        avatarUrl: raw.avatarUrl
+          ? `${process.env.REACT_APP_AVATAR_BASE_URL}${raw.avatarUrl}`
+          : DEFAULT_AVATAR_URL,
           nickname: raw.username || '未知用户',
           email: raw.email || '未填写',
           gender: raw.gender || '保密',
@@ -64,11 +63,11 @@
     formData.append('file', file);
 
     try {
-      const { data } = await axios.post(
-        `/echo/user/${user.userId}/uploadAvatar`,
-        formData,
-        { headers: { 'Content-Type': 'multipart/form-data' } }
-      );
+        const { data } = await axios.post(
+          `/echo/user/${user.userId}/uploadAvatar`,
+          formData,
+          { headers: { 'Content-Type': 'multipart/form-data' } }
+        );
 
       if (data?.avatarUrl) {
         setUserProfile((prev) => ({
@@ -141,5 +140,4 @@
   );
 };
 
-export default UserProfile;
-
+export default UserProfile; 
\ No newline at end of file
