Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
281f94ae
authored
2022-11-22 15:05:03 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:个人中心
1 parent
bf5db9e8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
src/layout/components/Navbar.vue
src/layout/newLayout.vue
src/layout/components/Navbar.vue
View file @
281f94a
...
...
@@ -9,10 +9,17 @@
</div>
<div
class=
"right-menu"
>
<svg-icon
class=
"function"
icon-class=
'function'
/>
<div
class=
"avatar-wrapper right-menu-item hover-effect"
>
<img
:src=
"avatar + '?imageView2/1/w/80/h/80'"
class=
"user-avatar"
/>
<span
style=
"margin-left: 10px;"
>
{{
name
}}
</span>
</div>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"hover"
@
command=
"handleCommand"
>
<div
class=
"avatar-wrapper"
>
<span
style=
"padding-right:10px"
>
{{
name
}}
</span>
<img
:src=
"avatar + '?imageView2/1/w/80/h/80'"
class=
"user-avatar"
/>
<!--
<i
class=
"el-icon-caret-bottom"
/>
-->
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
command=
"a"
>
个人中心
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<svg-icon
class=
"shutdown"
icon-class=
'shutdown'
/>
</div>
...
...
@@ -60,11 +67,6 @@ export default {
if
(
command
==
'a'
)
{
//个人中心
this
.
$router
.
push
({
name
:
'personal'
})
}
else
if
(
command
==
'f'
)
{
// 退出
this
.
$store
.
dispatch
(
'user/logout'
)
this
.
$router
.
push
(
`/login?redirect=
${
this
.
$route
.
fullPath
}
`
)
window
.
sessionStorage
.
clear
()
}
}
}
...
...
src/layout/newLayout.vue
View file @
281f94a
...
...
@@ -5,7 +5,6 @@
<!--顶部栏-->
<el-header
class=
"home_header"
>
<span
class=
"home_title"
>
</span>
</el-header>
<el-container
>
...
...
Please
register
or
sign in
to post a comment