杂务:打包并提交当前改动
This commit is contained in:
@@ -490,7 +490,10 @@ const handleChangePasswordSubmit = async () => {
|
||||
|
||||
changePasswordLoading.value = true
|
||||
try {
|
||||
await userApi.updatePassword({ password: changePasswordForm.password })
|
||||
await userApi.updatePassword({
|
||||
password: changePasswordForm.password,
|
||||
verificationCode: changePasswordForm.verificationCode
|
||||
})
|
||||
message.success('密码修改成功')
|
||||
changePasswordModalVisible.value = false
|
||||
// 清除需要设置密码的标识
|
||||
@@ -522,17 +525,6 @@ const handleDeactivateAccount = async () => {
|
||||
cancelText: '取消',
|
||||
onOk: async () => {
|
||||
try {
|
||||
// 在删除前先重命名账号和手机号,添加删除时间戳
|
||||
const timestamp = new Date().getTime()
|
||||
const newPhone = `${userInfo.value.phone}_deleted_${timestamp}`
|
||||
|
||||
try {
|
||||
await userApi.updateUserInfo({ phone: newPhone })
|
||||
} catch (renameError) {
|
||||
console.error('重命名手机号失败:', renameError)
|
||||
// 重命名失败也继续删除流程
|
||||
}
|
||||
|
||||
await userApi.deactivateAccount()
|
||||
message.success('账号注销成功')
|
||||
} catch (error) {
|
||||
@@ -658,4 +650,4 @@ onMounted(() => {
|
||||
color: #999;
|
||||
margin-top: 8px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user