修改密码BUG修复

This commit is contained in:
jianzhichu
2025-11-14 21:02:47 +08:00
parent f4d44850de
commit 8dcda7877e
2 changed files with 13 additions and 9 deletions
+9 -9
View File
@@ -116,15 +116,15 @@ const beforeUpload = (file: UploadProps['fileList'][number]) => {
// const userInfo = ref<string>();
const loadUserInfo = () => {
// useApiStore()
// .apiUserInfo()
// .then((res) => {
// if (res.code === 0) {
// if (res.data.avatar != null && res.data.avatar !== '') imageUrl.value = `/upload/${res.data.avatar}`;
// passwordFormData.UserId = res.data.id;
// uploadAction.value = `/api/auth/UpdateUserAvatar?Uid=${res.data.id}`;
// }
// });
useApiStore()
.apiUserInfo()
.then((res) => {
if (res.code === 0) {
if (res.data.avatar != null && res.data.avatar !== '') imageUrl.value = `/upload/${res.data.avatar}`;
passwordFormData.UserId = res.data.id;
uploadAction.value = `/api/auth/UpdateUserAvatar?Uid=${res.data.id}`;
}
});
};
interface PassFormState {
+4
View File
@@ -0,0 +1,4 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1