Commit 9a6c40fc by YunaiV

【代码优化】review 个人中心的各种

parent 5a91eaa5
...@@ -27,6 +27,7 @@ const userStore = useUserStore() ...@@ -27,6 +27,7 @@ const userStore = useUserStore()
const cropperRef = ref() const cropperRef = ref()
const handelUpload = async ({ data }) => { const handelUpload = async ({ data }) => {
// TODO @芋艿:去掉这个接口,使用 url 直接上传
const res = await uploadAvatar({ avatarFile: data }) const res = await uploadAvatar({ avatarFile: data })
cropperRef.value.close() cropperRef.value.close()
userStore.setUserAvatarAction(res.data) userStore.setUserAvatarAction(res.data)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment