diff --git a/src/renderer/src/api/system/user.js b/src/renderer/src/api/system/user.js
index c83e0f6..b7e9e23 100644
--- a/src/renderer/src/api/system/user.js
+++ b/src/renderer/src/api/system/user.js
@@ -7,7 +7,7 @@ export function getUserProfile() {
method: 'get'
})
}
-
+
// 修改用户个人信息
export function updateUserProfile(data) {
return request({
@@ -16,7 +16,7 @@ export function getUserProfile() {
data: data
})
}
-
+
// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
const data = {
@@ -29,11 +29,14 @@ export function getUserProfile() {
params: data
})
}
-
+
// 用户头像上传
export function uploadAvatar(data) {
return request({
url: '/system/user/profile/avatar',
+ headers: {
+ 'Content-Type': 'multipart/form-data'
+ },
method: 'post',
data: data
})
@@ -46,4 +49,4 @@ export function updateUserInfo(data) {
method: 'put',
data: data
})
-}
\ No newline at end of file
+}
diff --git a/src/renderer/src/views/profile/userAvatar.vue b/src/renderer/src/views/profile/userAvatar.vue
index b301307..1c289a4 100644
--- a/src/renderer/src/views/profile/userAvatar.vue
+++ b/src/renderer/src/views/profile/userAvatar.vue
@@ -26,7 +26,7 @@
-
+
@@ -64,7 +64,7 @@
-
+
-
+
\ No newline at end of file
+
diff --git a/src/renderer/src/views/profile/userInfo.vue b/src/renderer/src/views/profile/userInfo.vue
index c560d39..808e344 100644
--- a/src/renderer/src/views/profile/userInfo.vue
+++ b/src/renderer/src/views/profile/userInfo.vue
@@ -11,16 +11,16 @@
- 男
- 女
+ 男
+ 女
-
- {{
- item.itemtitle
- }}
+
+
+ {{item.itemtitle }}
+
@@ -29,7 +29,7 @@
-
+
\ No newline at end of file
+