diff --git a/src/apis/auth/type.ts b/src/apis/auth/type.ts index 29d08791..578010cd 100644 --- a/src/apis/auth/type.ts +++ b/src/apis/auth/type.ts @@ -8,7 +8,7 @@ export interface UserInfo { phone: string avatar: string pwdResetTime: string - passwordExpired: boolean + pwdExpired: boolean registrationDate: string deptName: string roles: string[] diff --git a/src/apis/system/user-center.ts b/src/apis/system/user-center.ts index 31f0faba..33bdd8c9 100644 --- a/src/apis/system/user-center.ts +++ b/src/apis/system/user-center.ts @@ -19,12 +19,12 @@ export function updateUserPassword(data: { oldPassword: string; newPassword: str } /** @desc 修改手机号 */ -export function updateUserPhone(data: { newPhone: string; captcha: string; currentPassword: string }) { +export function updateUserPhone(data: { phone: string; captcha: string; oldPassword: string }) { return http.patch(`${BASE_URL}/phone`, data) } /** @desc 修改邮箱 */ -export function updateUserEmail(data: { newEmail: string; captcha: string; currentPassword: string }) { +export function updateUserEmail(data: { email: string; captcha: string; oldPassword: string }) { return http.patch(`${BASE_URL}/email`, data) } diff --git a/src/assets/icons/password.svg b/src/assets/icons/password-color.svg similarity index 100% rename from src/assets/icons/password.svg rename to src/assets/icons/password-color.svg diff --git a/src/layout/components/HeaderRightBar/index.vue b/src/layout/components/HeaderRightBar/index.vue index a5ffb1af..f46ed8ad 100644 --- a/src/layout/components/HeaderRightBar/index.vue +++ b/src/layout/components/HeaderRightBar/index.vue @@ -51,7 +51,7 @@