We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a91eaa commit 9a6c40fCopy full SHA for 9a6c40f
src/views/Profile/components/UserAvatar.vue
@@ -27,6 +27,7 @@ const userStore = useUserStore()
27
28
const cropperRef = ref()
29
const handelUpload = async ({ data }) => {
30
+ // TODO @芋艿:去掉这个接口,使用 url 直接上传
31
const res = await uploadAvatar({ avatarFile: data })
32
cropperRef.value.close()
33
userStore.setUserAvatarAction(res.data)
0 commit comments