修复一些问题,个人账号功能完善,注册功能完善,收藏,购物车功能完善,初版基本完成,投入测试

This commit is contained in:
xiaowang
2026-03-03 17:50:10 +08:00
parent b301e37468
commit b0470b8f86
23 changed files with 804 additions and 129 deletions
+4 -3
View File
@@ -534,14 +534,15 @@ const handleDelete = async (record: UserVO) => {
return
}
// 在删除前先重命名账号,添加删除时间戳
// 在删除前先重命名账号和手机号,添加删除时间戳
const timestamp = new Date().getTime()
const newAccount = `${record.account}_deleted_${timestamp}`
const newPhone = `${record.phone}_deleted_${timestamp}`
try {
await userApi.updateUser(record.id, { account: newAccount })
await userApi.updateUser(record.id, { account: newAccount, phone: newPhone })
} catch (renameError) {
console.error('重命名账号失败:', renameError)
console.error('重命名账号和手机号失败:', renameError)
// 重命名失败也继续删除流程
}