修复前端打包问题
提取基础接口为配置
This commit is contained in:
@@ -506,13 +506,12 @@ const handleDeactivateAccount = async () => {
|
||||
try {
|
||||
// 在删除前先重命名账号和手机号,添加删除时间戳
|
||||
const timestamp = new Date().getTime()
|
||||
const newAccount = `${userInfo.value.account}_deleted_${timestamp}`
|
||||
const newPhone = `${userInfo.value.phone}_deleted_${timestamp}`
|
||||
|
||||
try {
|
||||
await userApi.updateUserInfo({ account: newAccount, phone: newPhone })
|
||||
await userApi.updateUserInfo({ phone: newPhone })
|
||||
} catch (renameError) {
|
||||
console.error('重命名账号和手机号失败:', renameError)
|
||||
console.error('重命名手机号失败:', renameError)
|
||||
// 重命名失败也继续删除流程
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user