调试接口

This commit is contained in:
wangxiaowei
2025-12-30 19:08:44 +08:00
parent f69536a7e4
commit 031649e9c4
11 changed files with 455 additions and 327 deletions

View File

@ -207,9 +207,10 @@
const response = JSON.parse(e.file.response)
if (response.code) {
const avatarUrl = response.data.url
await updateUserInfo({ avatar: avatarUrl })
user.value.avatar = avatarUrl
toast.info('头像上传成功')
console.log("🚀 ~ avatarUrl:", response)
// await updateUserInfo({ avatar: avatarUrl })
// user.value.avatar = avatarUrl
// toast.info('头像上传成功')
} else {
throw new Error('上传失败')
}