Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
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
2d8ba33f
authored
Aug 28, 2025
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改头像显示问题1
parent
a939742d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/layout/components/Navbar.vue
+1
-1
src/layout/user-layout.vue
+2
-2
No files found.
src/layout/components/Navbar.vue
View file @
2d8ba33f
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<div
class=
"avatar-container"
>
<div
class=
"avatar-container"
>
<el-dropdown
@
command=
"handleCommand"
class=
"right-menu-item hover-effect"
>
<el-dropdown
@
command=
"handleCommand"
class=
"right-menu-item hover-effect"
>
<div
class=
"avatar-wrapper"
>
<div
class=
"avatar-wrapper"
>
<img
:src=
"avatar"
class=
"user-avatar"
alt=
""
/>
<img
:src=
"
userStore.avatar ||
avatar"
class=
"user-avatar"
alt=
""
/>
<el-icon>
<el-icon>
<caret-bottom/>
<caret-bottom/>
</el-icon>
</el-icon>
...
...
src/layout/user-layout.vue
View file @
2d8ba33f
...
@@ -36,13 +36,13 @@
...
@@ -36,13 +36,13 @@
<el-dropdown
v-if=
"userStore.token"
@
command=
"handleCommand"
class=
""
>
<el-dropdown
v-if=
"userStore.token"
@
command=
"handleCommand"
class=
""
>
<div
v-if=
"userStore.token"
class=
"avatar-wrapper flex-align-center"
>
<div
v-if=
"userStore.token"
class=
"avatar-wrapper flex-align-center"
>
<img
:src=
"avatar"
class=
"user-avatar"
alt=
""
/>
<img
:src=
"
userStore.avatar ||
avatar"
class=
"user-avatar"
alt=
""
/>
<div
class=
"user-name"
>
{{ userStore.name }}
</div>
<div
class=
"user-name"
>
{{ userStore.name }}
</div>
</div>
</div>
<
template
#
dropdown
>
<
template
#
dropdown
>
<el-dropdown-menu>
<el-dropdown-menu>
<el-dropdown-item
command=
"logout"
>
<el-dropdown-item
command=
"logout"
>
<span>
退出登录
2
</span>
<span>
退出登录
</span>
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</
template
>
</
template
>
...
...
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