Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a6c40fc
authored
Apr 22, 2025
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【代码优化】review 个人中心的各种
parent
5a91eaa5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
src/views/Profile/components/UserAvatar.vue
+1
-0
No files found.
src/views/Profile/components/UserAvatar.vue
View file @
9a6c40fc
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment