修复前端打包问题

提取基础接口为配置
This commit is contained in:
xiaowang
2026-03-10 23:23:15 +08:00
parent 191c558049
commit 580a89c64d
27 changed files with 257 additions and 222 deletions
+2 -3
View File
@@ -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)
// 重命名失败也继续删除流程
}