diff --git a/src/views/Profile/components/UserAvatar.vue b/src/views/Profile/components/UserAvatar.vue index 29a52a5e..49ccd2aa 100644 --- a/src/views/Profile/components/UserAvatar.vue +++ b/src/views/Profile/components/UserAvatar.vue @@ -27,6 +27,7 @@ const userStore = useUserStore() const cropperRef = ref() const handelUpload = async ({ data }) => { + // TODO @芋艿:去掉这个接口,使用 url 直接上传 const res = await uploadAvatar({ avatarFile: data }) cropperRef.value.close() userStore.setUserAvatarAction(res.data)