修改密码BUG修复
This commit is contained in:
@@ -116,15 +116,15 @@ const beforeUpload = (file: UploadProps['fileList'][number]) => {
|
|||||||
// const userInfo = ref<string>();
|
// const userInfo = ref<string>();
|
||||||
|
|
||||||
const loadUserInfo = () => {
|
const loadUserInfo = () => {
|
||||||
// useApiStore()
|
useApiStore()
|
||||||
// .apiUserInfo()
|
.apiUserInfo()
|
||||||
// .then((res) => {
|
.then((res) => {
|
||||||
// if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
// if (res.data.avatar != null && res.data.avatar !== '') imageUrl.value = `/upload/${res.data.avatar}`;
|
if (res.data.avatar != null && res.data.avatar !== '') imageUrl.value = `/upload/${res.data.avatar}`;
|
||||||
// passwordFormData.UserId = res.data.id;
|
passwordFormData.UserId = res.data.id;
|
||||||
// uploadAction.value = `/api/auth/UpdateUserAvatar?Uid=${res.data.id}`;
|
uploadAction.value = `/api/auth/UpdateUserAvatar?Uid=${res.data.id}`;
|
||||||
// }
|
}
|
||||||
// });
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
interface PassFormState {
|
interface PassFormState {
|
||||||
|
|||||||
Reference in New Issue
Block a user